This is a migrated thread and some comments may be shown as answers.

RadGrid statistics

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ghadeer
Top achievements
Rank 1
ghadeer asked on 30 Dec 2008, 08:12 AM
Hello ALL,

I have a dataset as a source for radgrid,and I implement paging.....
and i want to get some statistics on data within a  Grid
so is there a way to count the records of the radgrid for all page?????


thanks
ghadeer

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Dec 2008, 08:42 AM
Hi,

Try the following code snippet.

CS:
protected void RadGrid1_ItemEvent(object sender, GridItemEventArgs e) 
    { 
         if (e.EventInfo is GridInitializePagerItem) 
         { 
           int allRowsCount = (e.EventInfo as GridInitializePagerItem).PagingManager.DataSourceCount; 
         } 
    } 


Thanks
Shinu.
Tags
Grid
Asked by
ghadeer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or