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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

page numbers on a datagrid

  • 17-08-2007 9: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, Registered Users 2 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