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?
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 appliedASPxGridView - How to Obtain the visible row count without counting group rows
Answers
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