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 Parent Record of child table

Thread ID:





117884 Jan 5,2015 01:52 PM UTC Jan 6,2015 09:56 AM UTC WinForms 1
Tags: GridGroupingControl
Supriya Varne
Asked On January 5, 2015 01:52 PM UTC

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 values of  Parent record of current cell of child table when fire the TableControlCurrentCellEditingComplete event.

Please give me solution regarding to this.

Thank you and Regards,

Neelakandan Kannan [Syncfusion]
Replied On January 6, 2015 09:56 AM UTC

Hi Supriya,

Thank you for your interest in Syncfusion products.

If you want to get the Parent record for currently edited child table while editing complete, you can use FilteredChildTable property to get the parent record. Please make use of below code,

Code Snippet:

void gridGroupingControl1_TableControlCurrentCellEditingComplete(object sender, GridTableControlEventArgs e)


if (e.TableControl.Table.TableModel.FilteredChildTable!=null)


                //To get Parent Record for currently edited child table

                Record parentRecord = e.TableControl.Table.TableModel.FilteredChildTable.ParentDisplayElement.ParentRecord;

                //To get column values from parent record

                string column1_Value = parentRecord.GetValue("parentID").ToString();

                string column2_Value = parentRecord.GetValue("ParentName").ToString();

                string column3_Value = parentRecord.GetValue("ParentDec").ToString();



Please refer the below sample:


Please let me know if you have any concerns.




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