How to get the selected row values of DevExpress XtraGrid?

前端 未结 7 761
后悔当初
后悔当初 2020-12-03 07:48

Consider the following picture

\"enter

I get the selected row values in the th

相关标签:
7条回答
  • 2020-12-03 08:30

    For VB.Net

    CType(GridControl1.MainView, GridView).GetFocusedRow()
    

    For C#

    ((GridView)gridControl1.MainView).GetFocusedRow();
    

    example bind data by linq so use

    Dim selRow As CUSTOMER = CType(GridControl1.MainView, GridView).GetFocusedRow()
    
    0 讨论(0)
提交回复
热议问题