Hi James,
Here is a code snippet that shows you how to get all the GridRecords that belong to a GridCaptionSection in a TableControlCurrentCellActivated event.
private void gridGroupingControl1_TableControlCurrentCellActivated(object sender, GridTableControlEventArgs e)
{
GridCurrentCell cc= e.TableControl.CurrentCell;
Element el = e.TableControl.Table.DisplayElements[cc.RowIndex];
if( el.Kind == DisplayElementKind.Caption )
{
if( el.ParentGroup != null
&& el.ParentGroup.ParentChildTable != null)
{
foreach(Record rec in el.ParentGroup.Records)
Console.WriteLine(rec);
}
}
}
Please refer to the attached sample for implementation.
GGC_Group.zipBest Regards,
Haneef