I would like to note that RadGridView
offers the GroupExpanded
event. It is fired when a group row is being expanded. However, you should know that the group rows (GridViewGroupRowInfo
) doesn't store cells' values. That is why you probably experience the error when you try to access a cell's value from a group row. The data rows (GridViewDataRowInfo
) actually have cells with associated values.
private void radGridView1_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e)
if (e.CurrentRow!=null && (! (e.CurrentRow is GridViewGroupRowInfo)) && e.CurrentRow is GridViewDataRowInfo)
You can add a Count
aggregate to the GroupDescriptor
in order to show how many records have within the group:https://docs.telerik.com/devtools/winforms/controls/gridview/grouping/group-aggregates
event allows you to customize the text displayed in the group row and show the number of rows that meet certain criteria. Please refer to the following help article demonstrating a sample approach: https://docs.telerik.com/devtools/winforms/controls/gridview/grouping/formatting-group-header-row
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.