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. Image for the cookie policy date
close icon

Get Nested Table control

Hello,

i have a GridGroupingControl with a relation displayed.

I want to access the tablecontrol that is displayed to show the detail records.

How can i do this?

Thank You,
Karl-Michael

PS:
Besode I wanted to know wether it is possible to enable grouping in these child-tables

1 Reply

RC Rajadurai C Syncfusion Team August 14, 2009 11:12 AM UTC

Hi Karl,

Thanks for your interest in Syncfusion Products.

The tablecontrol of a table can be retrieved through its name through the following code.

GridTableControl tc = this.gridGroupingControl1.GetTableControl("MyChildTable");

Through this object, you can implement any settings for that particular table.

For grouping, each table must have its own groupdroparea. By default, the groupdroparea get added to grid only for the main table. For child tables, it has to be added explicitly with the following code.

this.gridGroupingControl1.AddGroupDropArea("MyChildTable");

Here is a minimal sample for your reference in which these were illustrated.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/F88805.zip

Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon