tags:

views:

1422

answers:

3

Hi,

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?

any help will be great..

Thanks

Aslam Ansari

A: 

You can use the customsummarycalculate event to count the number of rows currently shown in the filtered collection and display it in the summary area (generally, I put that text in the summary area of the ID field for the collection I'm using - as I never have a need to put anything else there).

SnOrfus
A: 

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

Miha Markic
A: 

Hi, did you have any luck with this? I'm trying to do the same thing, only I would like to have the row count in the footer, aligned on the right side, regardless of the columns that are currently displayed. By using the CustomSummaryCalculate event, i can get the row count without depending on a column. The problem is that i cannot display it. I am very interested in what you managed to do, Thank you, Mihai

Mihai Drebot