Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,,,

I am adding rows in gridview by javascript manually.. mean creating a new row than new cells and than adding controls (labels) in those cells to populate gridview rows....


Now I want to allow paging on my gridview.. to do that,, Do i need to get all the data mean all rows in some thing and than allow specific number of rows on a page.. or what method should I use to allow paging ???

I am bit confused.. as I am adding rows through javascript.. so I dont have any fillGrid or loadgrid type method which rebinds the gridview....So Kindly help.....

Also tell me How can i get all the rows of gridview on serverside aswell??
Posted

1 solution

 
Share this answer
 
Comments
VICK 23-Jul-13 1:52am    
Got a problem to implement that... :(
Actually As i mentioned that I am adding rows manually by ussing. gridview.insertrow method...so rows are being added simultaneously without any paging implemented..e.g if i add 100 records they will add up like a pile.. so can you help me first to put records in pages???

I have tried using gridview properties.. allowpaging=true and pagesize = 10 but in vain... :(

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