Aligning DataGrid Columns!!

Discussion in 'ASP .Net Datagrid Control' started by Anthony Judd, Oct 31, 2004.

  1. Anthony Judd

    Anthony Judd Guest

    Can anyone tell me, how do right align datagrid columns?
    Help is appreciated!!

    <Columns>
    <asp:BoundColumn DataField="page_template_filename" ReadOnly="True"
    HeaderText="Template:"></asp:BoundColumn>
    <asp:BoundColumn DataField="navigation_item_name" ReadOnly="True"
    HeaderText="Name:"></asp:BoundColumn>
    <asp:TemplateColumn>
    <ItemTemplate>
    <asp:LinkButton CommandName="Edit" text="Edit" runat="server"
    />
    <asp:LinkButton CommandName="Delete" Text="Delete"
    runat="server" />
    </ItemTemplate>
    </asp:TemplateColumn>
    </Columns>
     
    Anthony Judd, Oct 31, 2004
    #1
    1. Advertising

  2. Anthony Judd

    Scott M. Guest

    First, you can only do this to a TemplateColumn.

    <asp:TemplateColumn>
    <ItemStyle HorizontalAlign="Right"></ItemStyle>
     
    Scott M., Nov 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmVubmlmZXI=?=

    aligning datagrid columns

    =?Utf-8?B?SmVubmlmZXI=?=, Nov 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    5,941
    =?Utf-8?B?SmVubmlmZXI=?=
    Nov 22, 2004
  2. Carlos
    Replies:
    0
    Views:
    582
    Carlos
    Aug 14, 2006
  3. rob thomson
    Replies:
    0
    Views:
    264
    rob thomson
    Sep 4, 2003
  4. Jennifer

    Aligning Particular Columns in a Data Grid

    Jennifer, Nov 18, 2004, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    188
    Jennifer
    Nov 19, 2004
  5. Matthew Van Gundy
    Replies:
    0
    Views:
    109
    Matthew Van Gundy
    Nov 4, 2003
Loading...

Share This Page