Hi Konstantin,
You can handle the TableControlMouseDown event and add related records in a group to selected record collection. Here is a code snippet to show this.
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
Point pt = new Point(e.Inner.X,e.Inner.Y);
GridTableCellStyleInfo style = e.TableControl.PointToTableCellStyle(pt);
Element el = style.TableCellIdentity.DisplayElement;
Group mGroup = el.ParentGroup;
//Check the CaptionRow.
if( mGroup.Name == "Col1" && el.Kind == DisplayElementKind.Caption )
{
foreach(Record rec in mGroup.Records)
e.TableControl.Table.SelectedRecords.Add( rec );
}
}
Please refer to the attached sample for more details.
GGCGroupSelection.zipBest Regards,
Haneef