How to get the selected row values of DevExpress XtraGrid?

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

Consider the following picture

\"enter

I get the selected row values in the th

7条回答
  •  青春惊慌失措
    2020-12-03 08:15

    var rowHandle = gridView.FocusedRowHandle;
    
    var obj = gridView.GetRowCellValue(rowHandle, "FieldName");
    
    //For example  
    int val= Convert.ToInt32(gridView.GetRowCellValue(rowHandle, "FieldName"));
    

提交回复
热议问题