Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total Row Count...

Status
Not open for further replies.

bartee

MIS
Mar 20, 2005
147
US
I'm using VS 2005 and have an Object Data Source on my webform. I also have a gridview on the page that used the Object Data Source as it's datasource.

If I don't have Paging enabled on the gridview, I can easily display the total number of rows using:
gridview1.rows.count

Problem is that when I turn paging on, gridview1.rows.count will only display the current number of records returned according to the paging.

How can I display the total number of records avaiable while using the paging feature to only display 25 at a time?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top