Hi,
In my datatable i insert 100 records. I want to select 10 per page and display the grid view. Anyone help... :)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Munesh SharmaPosted May 29, 2014, 12:04 AM
Khan Abrar AhmedPosted May 28, 2014, 6:49 AM
Renuga krishnanPosted May 28, 2014, 6:34 AM
Thanks. Now I got it. Now i have another problem. If u know plz help me.
Munesh SharmaPosted May 28, 2014, 1:17 AM
http://www.aspdotnet-suresh.com/2011/03/gridview-with-custom-paging.html
Khan Abrar AhmedPosted May 27, 2014, 12:42 PM
http://www.c-sharpcorner.com/UploadFile/rohatash/gridview-paging-sample-in-Asp-Net/
http://www.codeproject.com/Articles/67520/GridView-Paging-and-Sorting
Anupam SinghPosted May 27, 2014, 8:19 AM
you can specify pagesize="10" in your grid view.
hope it helps.
Abhishek KumarPosted May 27, 2014, 7:43 AM
From database while selecting use row number.
Use below code to find the 10 record from the data table.
var Rows = dt.AsEnumerable().OrderBy(o=> o.Field
Later write a function to pass page number and get the 10 records to display for paging from gridview.
Hope this helps.