BoldDeskPremium customer service software with affordable pricing: $10 for 3 agents. Try it for free.
void sortGrouping_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
GridGroupingControl grid = sender as GridGroupingControl;
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
{
Group group = e.TableCellIdentity.DisplayElement.ParentGroup;
if (group.Category != null && group.Name == "ID")//Check for the ComboBox(lookup) column
{
DataRow[] dr = dt.Select("Lookup_id = " + group.Category.ToString());
if (dr.GetLength(0) > 0)
{
string dispCat = dr[0]["Lookup_member"].ToString();
e.Style.Text = grid.TableDescriptor.Columns[group.Name].HeaderText + ": " + dispCat + " - " + group.GetFilteredRecordCount().ToString() + " Items.";
e.Handled = true;
}
}
}
}