Ticket Q394390
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Add a capability to display a real count of records in the ASPxGridView even when a grouping is applied

ASPxGridView - How to Obtain the visible row count without counting group rows

created 13 years ago

I'd like to display the number of rows in an ASPxGridView. The VisibleRowCount property includes group rows as well as detail rows. Is there a way to get just a count of detail rows or to subtract the group rows from that number?
I did see somewhere on this forum a suggestion to look at the datasource, however the datasource is an object type and thus there's no easy way to get at the number of rows without knowing the type in advance. In my situation I won't know the type in advance. I'd prefer not to use reflection, so I'm wondering if there's an alternative?

Answers

created 13 years ago

Hi Ron,
I believe that you can use the approach shown in the ASPxGridView - How to calculate the number of data rows if ASPxGridView data is grouped thread to accomplish this task.
Please try this solution and let us know the results.
Thanks,
Andrew

    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.