Change
Change

Reputation: 438

How to show page numbering numerically?

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

Answers (2)

coder
coder

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

Kaf
Kaf

Reputation: 33809

You mean this?

gvData.PageSize = 6;
gvData.PageCount = 10;
gvData.AllowPaging=true;
...

Upvotes: 3

Related Questions