how to get the value of a row from child table (GGC)

Hi!
I would like how do I get the value of the row from a child table at runtime?
I built a relationship master/detail using GGC.


Thanks.

Ediberto Alves

3 Replies

AD Administrator Syncfusion Team July 3, 2009 01:41 PM UTC

Someone please?


AD Administrator Syncfusion Team July 6, 2009 12:25 PM UTC

someone?


LS Lingaraj S Syncfusion Team July 6, 2009 03:10 PM UTC

Hi Alves,

Thank you for your interest in Syncfusion product.

If you want to get the value from the ChildTable, then please try using GetTableModel method in GridGroupingControl to achieve this behavior. The GetTableModel method arguments with table name. It is return the model of the table.

Refer the code below:

GridTableModel mod = this.gridGroupingControl1.GetTableModel("MyChildTable");
if(mod!=null)
{
if(mod.Table.DisplayElements[5]!=null)
{
MessageBox.Show(mod.Table.DisplayElements[5].ToString());
}
}


Refer the sample in below link:
http://files.syncfusion.com/support/samples/Grid.Windows/forums/GetValuecell.zip

Please let me know if you have any queries.

Regards,
Lingaraj S.

Loader.
Up arrow icon