Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want usercontrol that display drop down of page size ,total no of pages,and page no dropdown so it directly go that page. i dont want page size from database instead of that i want page size from gridview according to number of record. any one help please thanx in advance
Posted

1 solution

Well get the record count of the datasource to the grid view. This should give you the total number of records you have displayed in the gridview.

If you are using paging, then maybe this thread[^] can help you.
 
Share this answer
 
Comments
bhargavpp 1-Aug-11 6:40am    
this is bad idea because i have to take another method to count record from database so it is nice to count no of rows of data table and then assgin according to that.please help in more thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900