Hi Nino,
Thanks for using Syncfusion products.
We could able to understand your scenario. In GridDataBoundGrid, the cell value of a particular cell can be retrieved from current record value using GetRecordStateAtRowIndex and GetValue methods. The GetRecordStateAtRowIndex method can be used to get the current record and GetValue method can be used to get the particular cell value. Please make use of the provided code sample and KB link,
Code snippet
//Event Subscription gridDataBoundGrid1.CurrentCellControlDoubleClick += GridDataBoundGrid1_CurrentCellControlDoubleClick; //Event Customization private void GridDataBoundGrid1_CurrentCellControlDoubleClick(object sender, ControlEventArgs e) { if (gridDataBoundGrid1.CurrentCell.ColIndex == 2) { int rowIndex = gridDataBoundGrid1.CurrentCell.RowIndex; //To get the current record GridBoundRecordState record = this.gridDataBoundGrid1.Binder.GetRecordStateAtRowIndex(rowIndex); foreach (GridBoundColumn column in this.gridDataBoundGrid1.Binder.InternalColumns) { if (column.MappingName == "Description") { //To get the particular cell value string value = column.PropertyDescriptor.GetValue(record.Table[record.Position]).ToString(); MessageBox.Show(value); } } } } |
Regards,
Arulpriya