hi,
i am trying to optimize my report. in grid view i am load only current page data. in this case it doe't show page numbers.
how to add page numbers in grid view. like VirtualItemCount in datagrid ?
Hi,
You should set AllowPaging="true" and
PageSize="5" for gridview. For detailed information, you can refer here
http://www.codeproject.com/Articles/125541/Effective-Paging-with-GridView-Control-in-ASP-NET
http://www.dotnetcurry.com/ShowArticle.aspx?ID=244
And here is about
Optimized Paging and Sorting in ASP.NET GridView:
http://dotnetslackers.com/articles/gridview/Optimized-Paging-and-Sorting-in-ASP-NET-GridView.aspx
Hope it can help you
沒有留言:
張貼留言