Hi Nhilesh,
One way you can do this by hanlding the QueryCoveredRange event and set the covered rage for grouped rowheader cell and it corresponding grouped filed value. Below are the code snippet that show this task.
void TableModel_QueryCoveredRange(object sender, GridQueryCoveredRangeEventArgs e)
{
GridTableModel tableModel = sender as GridTableModel;
Element el = tableModel.GetDisplayElementAt(e.RowIndex);
if (el != null)
{
int count = el.ParentGroup.Records.Count - 1;
if (count > 0)
{
GridTableCellStyleInfo style = tableModel.Table.GetTableCellStyle(e.RowIndex, e.ColIndex);
if (e.ColIndex == 0)
{
e.Range = GridRangeInfo.Cells(e.RowIndex, e.ColIndex, e.RowIndex + count, e.ColIndex);
e.Handled = true;
}
else if (style.TableCellIdentity.Column != null
&& style.TableCellIdentity.Column.Name == "Rank")
{
e.Range = GridRangeInfo.Cells(e.RowIndex, e.ColIndex, e.RowIndex + count, e.ColIndex);
e.Handled = true;
}
}
}
}
Also refer the below sample for implementation and let me know if this helps.
GGC_NestedChilds.zipBest regards,
Haneef