masterdetail and GGC

I am trying to link 4 tables. I took the masterdetail example and modified it a bit.

Three of the tables link ok. The second table
looks like the first.

I am not sure what I am doing wrong.

Thanks

Raymond.

masterdetail4.zip

1 Reply

AD Administrator Syncfusion Team February 1, 2007 09:19 PM UTC

Hi Ray,

The reason is that you are not setting the DataMember property of the root2Grid. Try setting this property.

[c#]
this.root2Grid.DataSource = root1;
// try comment the below line
//this.root3Grid.DataMember = "root1ToRoot2";
///Set the datamember property of root2Grid
this.root2Grid.DataMember = "root1ToRoot2";
this.root2Grid.TableDescriptor.Relations.Clear(); // don't autopopulate relations

Here is a modifiied sample.
masterdetail.zip

Best Regards,
Haneef

Loader.
Up arrow icon