Hi HMoeller,
You can handle the QueryCellStyleInfo event of the grid and set the e.Style.Text property for GroupCaptioncell in Enumeration grouped column. Here is a code snippet.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if( e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
{
Element el = e.TableCellIdentity.DisplayElement;
if( el.ParentGroup != null && el.ParentGroup.Name == "Col3") //Enumeration Column.
{
if( el.ParentGroup.Category.ToString() != null)
{
string Category = Enum.GetName(typeof(Days),el.ParentGroup.Category);
string GroupName = el.ParentGroup.Name;
int Count= el.ParentGroup.Records.Count;
e.Style.Text = string.Format("{0}-{1}-{2} Items",GroupName,Category,Count);
}
}
}
}
Please refer to the attached sample for implementation.
Customize Dropdownlist.zipBest Regards,
Haneef