471,066 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Unable to view page numbers in datagrid


I have set the AllowPaging property of datagrid control to be true. But I am still not able to view the page numbers. I have checked that the number of records I am fetching is more thatn the page size limit i have set. Please help me out....
Jun 7 '07 #1
1 1081
7,872 Expert 4TB
I think there are some other settings you have to set? I dunno, I have the following and my pager thing works just fine
Expand|Select|Wrap|Line Numbers
  1. <asp:GridView ID="gvOverdueSites" EmptyDataText="(None)" GridLines="Both" CellPadding="5" AllowPaging="True" BorderColor="#f0e68c" BorderWidth="3px"  CssClass="gv" runat="server" Style="z-index: 102; " OnPageIndexChanging="gvOverdueSites_PageIndexChanging" PageSize="5">
  2. <EmptyDataRowStyle BackColor="Transparent"  HorizontalAlign="Center" />
  3. <PagerStyle BackColor="Yellow" />
  4. <HeaderStyle BackColor="Yellow" Font-Bold="True" Font-Size="14px" />
  5. <PagerSettings Mode="NumericFirstLast" />
  6. </asp:GridView>
Jun 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Rob Tweed | last post: by
3 posts views Thread by David | last post: by
1 post views Thread by A Traveler | last post: by
6 posts views Thread by Bala | last post: by
12 posts views Thread by Raed Sawalha | last post: by
6 posts views Thread by Dee | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.