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

RadGrid statistics

1 Answer 50 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:10 AM
Hello ALL,

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

1 Answer, 1 is accepted

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

Try the following code snippet to get entire rows count in a RadGrid.

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


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