Hi Shankar,
You can use the below code snippet to get the group category name in a TableControlCellClick event.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex,e.Inner.ColIndex] as GridTableCellStyleInfo;
if( style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
{
GridCaptionRow row = style.TableCellIdentity.DisplayElement as GridCaptionRow;
if( row != null && row.ParentGroup != null )
Console.WriteLine( row.ParentGroup.Category );
}
}
Please refer to attached sample for more details.
ModifiedGGCCurrentCaptionColor.zipBest regards,
Haneef