Hi Haneef,
Thanks for your reply, this has solved my problem, But now i am facing anew problem on the same grid.
When i double click on the Row header of the Child data, i am getting an error saying that
"Specified argument was out of the range of valid values."
I have not handled any grid event in my code from where this event can be generated. Also when i try to Debug the code by selecting "Break into debugger" option from the Debug--> Exceptions window, it does not break into any place in my Code.
Abhi....
>Hi Abhijeet,
In a flat groupinggrid, you can get the selected records in this manner.
GridTable gt = this.gridGroupingControl1.Table;
foreach(SelectedRecord rec in gt.SelectedRecords)
{
Console.WriteLine(rec.Record);
}
With the nested tables, you need to get the child table you want, and do the same type of thing. Here is a code snippet
GridTable gt = this.gridGroupingControl1.GetTable("ChildTable");
foreach(SelectedRecord rec in gt.SelectedRecords)
{
Console.WriteLine(rec.Record);
}
Please refer to the attached sample for getting selected record in a grid.
GGC_NestedTable.zipBest Regards,
Haneef