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.

GridGroupingControl - Getting mapping name of current column

Thread ID:

Created:

Updated:

Platform:

Replies:

46406 Jul 12,2006 01:00 PM Dec 29,2014 06:25 AM Windows Forms 2
loading
Tags: GridControl
Clive Hill
Asked On July 12, 2006 01:00 PM

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 07:34 PM

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 06:25 AM

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

Thank u and regards,
Supriya

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.

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.

;