Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

page numbers on a datagrid

Options
  • 17-08-2007 10:25am
    #1
    Closed Accounts Posts: 2,616 ✭✭✭


    is there anyway to get them centered instead of to thr left. wrecking my head!!


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    Yep, the markup for the datagrid has a PagerStyle element. You can use this to center the pager numbers. I'd hazard a guess and say it probably the horizontal align (as the datagrid is rendered as a table) but failing that you could try setting a css class.

    [html]
    <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="true">
    <PagerStyle HorizontalAlign="center" />
    </asp:DataGrid>
    [/html]


Advertisement