DevExpress WPF Grid - get number of rows DevExpress WPF Grid - get number of rows wpf wpf

DevExpress WPF Grid - get number of rows


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.


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 ?