Extract MappingName from GridCellTextEventArgs

Hi: A simple question, We use QueryCellFormattedText event with GridDataBoundGrid, and how do we extract the column mapping name from GridCellTextEventArgs? Thanks, Chunhui

1 Reply

AD Administrator Syncfusion Team May 10, 2005 11:16 PM UTC

Hi Chunhui, You could try this: private void Model_QueryCellFormattedText(object sender, GridCellTextEventArgs e) { if(e.Style.CellIdentity.ColIndex > 0 && e.Style.CellIdentity.RowIndex > 0) { System.Diagnostics.Trace.WriteLine(this.gridDataBoundGrid1.Binder.InternalColumns[this.gridDataBoundGrid1.Binder.ColIndexToField(e.Style.CellIdentity.ColIndex)].MappingName); } } Best regards, Jay N

Loader.
Up arrow icon