Hello,
i use the ViewCellFormatting event to set an icon in the group header. It works, but how can i determining the group if i have more than one grouped column (something like the SummaryItem in the GroupSummaryEvaluationEventArgs).
Here my event handler for th ViewCellFormattingEvent:
private void OnGridViewCellFormatting(object sender, CellFormattingEventArgs e)
{
//Need the group here
GridCellElement gce = e.CellElement;
if (gce is GridGroupContentCellElement)
{
GridData gd = GetGridData(e); //Get the needed data
gce.DrawFill = true;
gce.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
gce.BackColor = SystemColors.ControlLight;
gce.Image = gd == null ? null : gd.Point.Marker ? _okImage : _nokImage;
}
}
Thank you
Christoph