Ticket Q214321
Visible to All Users

Total Row Count in Footer is Counting the Grouped Rows

created 16 years ago

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?

Comments (2)
DevExpress Support Team 16 years ago

    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?

      Answers

      created 16 years ago

      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

        Comments (2)

          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.

          DevExpress Support Team 16 years ago

            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

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.