HA
Hu Anderson
January 26, 2007 08:18 PM UTC
Sorry for the double post.
>I followed the example for the Master Detail Form and I have one quick question.
I added two separate grids to the form however they show as a nested grid, like the HierarchyGrid in the example. How do you make these display as the 2 separate grids, like the Parent, Child, and GrandChild grids in the example.
AD
Administrator
Syncfusion Team
January 29, 2007 06:58 AM UTC
Hi Anderson,
Thank you for being patience.
This can be achieved by using the following code snippet.
>>>>>>>>>>>>>>>>>>>>>>>>>>>
this.parentTableGrid.DataSource = parentTable; //master
this.parentTableGrid.TableDescriptor.Relations.Clear(); // don't auto populate relations
this.parentToChildGrid.DataSource = parentTable; //detail1
this.parentToChildGrid.DataMember = "ParentToChild"; //detail1
this.parentToChildGrid.TableDescriptor.Relations.Clear(); // don't auto populate relations
this.childToGrandChildGrid.DataSource = parentTable; //detail2
this.childToGrandChildGrid.DataMember = "ParentToChild.ChildToGrandChild"; //detail2
this.childToGrandChildGrid.TableDescriptor.Relations.Clear(); // don't auto populate relations
>>>>>>>>>>>>>>>>>>>>>>>>>>>
Also please refer to the our shipped browser sample ‘MasterDetailForm’ [ \windows\Grid.Grouping.Windows\Samples\RelationsAndHierarchy\MasterDetailForm ]
Kindly let us know if you need any further assistance.
Have a nice day.
Best regards,
Madhan