Click here to Skip to main content
15,909,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Buddy's
In my asp.net application am having "GrideView" control for which i have to fetch
the records from SQL database and fill the grideview.That task i had done.But now for end user conviniance i have to introduce pagging in that.So i google it a lot
but i could not found simple sorce code to do that.

Ex.Suppose am having 65 records in my datable and my pagesize in 15 so at first attempt it will show me 1 to 15 records on page index 1.But when i want to handle
page index change event then i need to show 16 to 30 records on pageindex 2,and for page index 3, 31 to 45 and so on.....

So how can i accomplish that with efficiancy my code is in C#.

So can somebody help me ......????

Thanks in Advance
Yogesh
Posted

You didn't google too hard then...

From this very site: Showing a page of information at a time in a GridView[^]
 
Share this answer
 
Comments
YOGESH DHAGE 31-Dec-11 3:27am    
Yes Friend it helps to understand the Grideview but my problem is i need to display grideview with specific range of records on page_index change events.
Thansk For help it really help me but still am confuse how to acomplish..
i think you want to implemetn paging in grid view , isn't it , if yes then refer the following , these migth help you :
Effective Paging with GridView Control in ASP.NET[^]
Custom paging for Gridview, DataGrid, DataList and Repeater Control in ASP.Net with C#[^]
 
Share this answer
 
 
Share this answer
 

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