【问题标题】:Get selected row in Gridview (dxexprince 10 aspx.net)?在 Gridview (dxexprince 10 aspx.net) 中获取选定的行?
【发布时间】:2010-08-05 10:02:34
【问题描述】:

我是 Dxpreince 10 的新手。(并且不认为我是这方面的专家)
我写了简单的网页。对于在网格视图中设置值,我使用列表并将其绑定到Aspxgridview.Datasouce。那么如何访问选定的行?(请帮助示例代码)
我想在my self defined method not in Selection-changed method! and access to all part of this record no one part of that得到这个值

应该使用客户端事件

【问题讨论】:

    标签: devexpress aspxgridview


    【解决方案1】:

    您是否尝试过 FocusedRowIndex 属性?

    文档: FocusedRowIndex

    【讨论】:

      【解决方案2】:

      使用

      ASPxGridView.GetRow(ASPxGridView.FocusedRowIndex)

      为此目的的方法。

      【讨论】:

      • 所以我用这个属性解决了我的问题,但是你需要将 SettingsBehavior-AllowFocusedRow 设置为 true ,然后 "FocusedRowIndex" 返回所选行的索引
      猜你喜欢
      • 2010-09-18
      • 2011-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多