Devexpress GridControl 怎么获取上次选中行的值

Devexpress GridControl 怎么获取上次选中行的值

上次选中行的索引值存到缓存里面
int index = gridView1.GetFocusedDataSourceRowIndex();//获取数据行的索引值,从0开始
int id = (int)gridView1.GetRowCellValue(index, "ID");//获取选中行的单元格的值