select all rows in group on mouse click

Prompt please as on click on group summary row to select all rows in group

2 Replies

VI Vitaliy October 2, 2006 02:40 PM UTC

in GridGroupingControl


AD Administrator Syncfusion Team October 3, 2006 07:17 AM UTC

Hi Vitaliy,

Try these code in TableControlCellClick event and let me know if this helps.

int row = e.Inner.RowIndex;
int col = e.Inner.ColIndex;
GridTableCellStyleInfo style = e.TableControl.Model[row,col] as GridTableCellStyleInfo;
Element el = style.TableCellIdentity.DisplayElement;
if(el.Kind == DisplayElementKind.Summary && el.ParentGroup != null)
{
foreach(Record rec in el.ParentGroup.Records )
{
e.TableControl.Table.SelectedRecords.Add(rec);
}
}

Thanks,
Haneef

Loader.
Up arrow icon