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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Extract MappingName from GridCellTextEventArgs

Thread ID:

Created:

Updated:

Platform:

Replies:

28800 May 10,2005 09:58 PM UTC May 10,2005 11:16 PM UTC Windows Forms 1
loading
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

CONFIRMATION

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.

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

;