Reputation: 438
Is there any way I can change page numbering using C# instead of using ASP.NET as happened here,
<asp:GridView ID="gvData"
runat="server"
AllowPaging=true
PageSize=5
PagerSettings-PageButtonCount=20 >
</asp:GridView>
Upvotes: 1
Views: 149
Reputation: 2000
Use this..
gvData.pagesize=somenumber;
gvData.pagersettings.Mode=some mode;
pageisze to change the size of the page and
pagersettings.Mode to change the numbering mode
Upvotes: 4
Reputation: 33809
You mean this?
gvData.PageSize = 6;
gvData.PageCount = 10;
gvData.AllowPaging=true;
...
Upvotes: 3