We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon