How to count Number of Rows devexpress xtragrid

devexpress

I am using Devexpress XtraGrid Control, Here I can count the number of rows in footer of grid. but for this I need to set count property of SummeryItem in grid for at least one column. I dont want to do like this.

I want count number of rows in xtraGrid without referring any one column in grid. I just want to show number of rows count. when user will filter that rows, at that time count also need to be changed.

Is there any option to show this number in Group header panel?

Best Answer

I'd use BaseView.RowCount to get the row count and draw it within CustomDrawGroupPanel event.

Related Topic