By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,825 Members | 2,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,825 IT Pros & Developers. It's quick & easy.

Unable to view page numbers in datagrid

P: 1
Hi,

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
Share this Question
Share on Google+
1 Reply


Plater
Expert 5K+
P: 7,872
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>
  7.  
Jun 7 '07 #2

Post your reply

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