Category / Section
How to access the ChildTableDescriptor while using Hierarchial data?
1 min read
The ChildTableDescriptor is the TableDescriptor that describes the Child Table. This can be accessed by TableDescriptors Relations property. Please refer the below code snippet which illustrates this:
C#
((GridTableDescriptor)this.GridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor).Columns.FindByMappingName("Name").HeaderText = "ChildName";
VB
CType(Me.GridGroupingControl1.TableDescriptor.Relations(0).ChildTableDescriptor, GridTableDescriptor).Columns.FindByMappingName("Name").HeaderText = "ChildName"
Sample:
http://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGCChildDesc/ChildDesc.zip