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

How to find column name of current cell of child table when fire the TableControlCurrentCellEditingComplete event.

Thread ID:

Created:

Updated:

Platform:

Replies:

117882 Jan 5,2015 07:28 AM UTC Jan 6,2015 09:53 AM UTC WinForms 3
loading
Tags: GridGroupingControl
Supriya Varne
Asked On January 5, 2015 07:28 AM UTC

Hi,
I am using Gridgrouping control.
I have Parent-Child Relationship in the control.
I want to change current cell values in child table.
I want to column name of current cell of child table when fire the TableControlCurrentCellEditingComplete event.

Please give me solution regarding to this.

Thank you and Regards,
Supriya


Muthukumar Kalyanasundaram [Syncfusion]
Replied On January 5, 2015 05:49 PM UTC

Hi Supriya,

 

Thank you for your interest in Syncfusion products.

 

If you want to change the current cell value and get the column name of current cell of child table in a GridGroupingControl, you can use “TableControlCurrentCellStartEditing” event. Please refer the below code,

 

Code:

 

this.gridGroupingControl1.TableControlCurrentCellStartEditing += new GridTableControlCancelEventHandler(gridGroupingControl1_TableControlCurrentCellStartEditing);          

 

void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)

{

Element el = this.gridGroupingControl1.Table.GetInnerMostCurrentElement();

GridCurrentCell cc = e.TableControl.CurrentCell;

GridTable tablechild = this.gridGroupingControl1.GetTable("Orders");

GridRecord rec = el as GridRecord;

GridTableCellStyleInfo style = tablechild.GetTableCellStyle(cc.RowIndex, cc.ColIndex);

if (tablechild.CurrentRecord != null)

MessageBox.Show(" Child table ColumnName : " + style.TableCellIdentity.Column.Name);

}

 

Please let us know if you have any concern.

 

Regards,

Muthukumar k


Attachment: Currentcell_value_1ad759a8.zip

Supriya Varne
Replied On January 6, 2015 09:03 AM UTC

Hi,
      Thanks for giving me solution its working properly 

Thank you and Regards,
Supriya

Muthukumar Kalyanasundaram [Syncfusion]
Replied On January 6, 2015 09:53 AM UTC

Hi Supriya,

We are glad to hear that the reported issue has been resolved. Please let us know if you need any further assistance.

Regards,
Muthukumar K

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

;