Does anyone knows how to get a DevExpress WPF Grid Rows count?
Asked
Active
Viewed 8,403 times
2 Answers
9
The number of rows displayed can change as users change the grouping, filterting. Therefore, you should use the GridControl.VisibleRowCount property instead of the data source row count.

Mohsen Afshin
- 13,273
- 10
- 65
- 90

TheSean
- 4,516
- 7
- 40
- 50
0
I am not sure there is a way except by actually walking the visual tree (using VisualTreeHelper). How about something like (mygGidControl1.DataSource as ICollection).Count ?

bitbonk
- 48,890
- 37
- 186
- 278