I have a grid that has groupings. The total count is including the grouped rows along with the data rows that are being grouped. Is this by design or a bug?
Total Row Count in Footer is Counting the Grouped Rows
Answers
Hello Gary,
I think you can try the way used in the following demos: Group Summary, Group Footer Summary.
Do they suit you well? Please let me know.
Thanks,
Vest
Here's the problem… I have a grid that is grouped by a certain column. In the grid, you see the grouped headers and beneath them the rows that belong to those grouped headers. I need the total count of the rows excluding the group header rows, regardless if they are expanded or collapsed.
Hello Gary,
Sorry for the misunderstanding, but I want to explain my idea:
As I've mentioned earlier, I suggest that you use the Group Summary. In the attached screenshot I show that the number of rows inside groups is counted by using a summary. You see that the number of records inside the top group is equal to the sum of rows inside each subgroup, and group headers aren't counted.
Please explain me why you don't like this solution. It'd be better if you provide an illustration of your request.
Thanks,
Vest
Hello Gary,
The ASPxGridView.VisibleRowCount property shows the number of rows within the ASPxGridView. If the groups are collapsed, you will get the number of group rows, otherwise the result can be different. Rows contained within collapsed group rows are not counted. You can also determine a group by using the ASPxGridView.IsGroupRow.
In the Grouping demo you can see the number of rows when group are expanded or collapsed.
Thanks,
Vest
Thanks Vest. How can I retrieve just the number of rows not including the grouped rows and display them in the footer?