Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using ASP.NET C# and i want to set custom pagination in grid view but in grid view PageCount is readable(Means we can't assign value). Can any one help me how we set pagination count in grid view.
Posted

Please add a pager control on your page and set page size property on that.

<asp:DataPager ID = "pager" runat = "server" PageSize = "10" PagedControlID="yourGridView">
</asp:DataPager>
 
Share this answer
 
v2
 
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