var index = gridView1.GetFocusedDataSourceRowIndex();//获取数据行的索引值,从0开始
var c = (int)gridView1.GetRowCellValue(index, "ID");//获取选中行的那个单元格的值
Dev 获取GridControl的选中行的值
最新推荐文章于 2024-04-05 09:56:45 发布
var index = gridView1.GetFocusedDataSourceRowIndex();//获取数据行的索引值,从0开始
var c = (int)gridView1.GetRowCellValue(index, "ID");//获取选中行的那个单元格的值