Hi Harshed,
You can handle the TableModel.QueryCoveredRange event and set the e.Range for expanded groupcaption cell. Here is a code snippet.
private void TableModel_QueryCoveredRange(object sender, GridQueryCoveredRangeEventArgs e)
{
GridTableModel model = sender as GridTableModel;
Element el = model.Table.DisplayElements[e.RowIndex];
if( el.ParentGroup != null && el.ParentGroup.IsExpanded )
{
GridTableCellStyleInfo style = model[e.RowIndex,e.ColIndex] as GridTableCellStyleInfo;
if( style != null
&& style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell )
{
e.Range = GridRangeInfo.Cells(e.RowIndex,e.ColIndex,e.RowIndex,model.ColCount);
e.Handled = true;
}
}
}
Please refer to the attached sample for implementation.
GGCHideshowSummaries.zipBest Regards,
Haneef