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

GridGroupingControl - Getting mapping name of current column

Thread ID:





46406 Jul 12,2006 05:00 PM UTC Dec 29,2014 11:25 AM UTC WinForms 2
Tags: GridControl
Clive Hill
Asked On July 12, 2006 05:00 PM UTC

When I edit a cell I catch the event TableControlCurrentCellEditingComplete, in the handler I need to get the mapping name of the current column. I can get the column index by: GridCurrentCell cc = e.TableControl.CurrentCell; GridTextBoxCellRenderer gcrb = cc.Renderer as GridTextBoxCellRenderer; gcrb.CurrentCell.ColIndex I can then get mappingName by: dataGrid.TableDescriptor.Columns[colIndex-1].Name but if I then move around columns this doesn''t work. Is there a way to directly get the mapping name from, say, the CurrentCell?

Administrator [Syncfusion]
Replied On July 12, 2006 11:34 PM UTC

Hi Vito, One way to access the column name is by using GridTableCellStyleInfoIdentitiy. The following is the code snippet +++++++++++++++++++++++++++++ GridTableCellStyleInfoIdentity style = this.gridGroupingControl1.TableModel[cc.RowIndex,cc.ColIndex].TableCellIdentity; if(style.TableCellType == GridTableCellType.RecordFieldCell || style.TableCellType == GridTableCellType.AlternateRecordFieldCell) Console.WriteLine(style.Column.Name); +++++++++++++++++++++++++++++ Best regards, Madhan

Supriya Varne
Replied On December 29, 2014 11:25 AM UTC

Sir I want column name of current cell of child table when using the TableControlCurrentCellEditingComplete event of gridgrouping control.

Thank u and regards,


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

This page will automatically be redirected to the 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