Hello Sir,
I am trying to get value of hidden cell of selected row.
I am using below code from an example online, but it exits with error on last row.
//--------------------------
// Get the cell value for RowIndex = 5 and ColumnIndex = 1
int rowIndex = 5;
int columnIndex = sfDataGrid.TableControl.ResolveToGridVisibleColumnIndex(1);
if (columnIndex < 0)
return;
var mappingName = sfDataGrid.Columns[columnIndex].MappingName;
var recordIndex = sfDataGrid.TableControl.ResolveToRecordIndex(rowIndex);
if (recordIndex < 0)
return;
var record1 = sfDataGrid.View.Records.GetItemAt(recordIndex);
var cellVaue = (record1.GetType().GetProperty(mappingName).GetValue(record1, null).ToString());
//--------------------------
I want to get cell value on double click or cell double click event.
Please help, where something is wrong.
Your help will be highly appreciated.