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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Extract MappingName from GridCellTextEventArgs

Thread ID:





28800 May 10,2005 09:58 PM UTC May 10,2005 11:16 PM UTC WinForms 1
Tags: GridControl
Cheunhui Wang
Asked On May 10, 2005 09:58 PM UTC

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

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon