Align Datagrid Headers and Detail

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Gates

    Align Datagrid Headers and Detail

    Hi All,

    I am having a little trouble aligning information in my Datagrid, what I
    want to do is align the Header text of a column to the left but the detail
    information of this column to the right.

    I can align a whole column (header and detail) but can not seperate the two.

    Any Ideas?

    Thanks


  • Ollie Riches

    #2
    Re: Align Datagrid Headers and Detail

    Bill,

    DataGridColumn. HeaderStyle allows you to configure the header style

    and

    DataGridColumn. ItemStyle allows you to configure the item style

    HTH

    Ollie Riches

    "Bill Gates" <BGates@microso ft.com> wrote in message
    news:#JYxrySDFH A.1084@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi All,
    >
    > I am having a little trouble aligning information in my Datagrid, what I
    > want to do is align the Header text of a column to the left but the detail
    > information of this column to the right.
    >
    > I can align a whole column (header and detail) but can not seperate the[/color]
    two.[color=blue]
    >
    > Any Ideas?
    >
    > Thanks
    >
    >[/color]


    Comment

    • Bill Gates

      #3
      Re: Align Datagrid Headers and Detail

      Thanks for this,

      does this work for Windows Forms? can not seem to find the HeaderStyle!

      doing my head in....Grrrr!!!! !

      Thanks

      "Ollie Riches" <ollie_riches@h otmail.com> wrote in message
      news:OTA6o9SDFH A.2568@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Bill,
      >
      > DataGridColumn. HeaderStyle allows you to configure the header style
      >
      > and
      >
      > DataGridColumn. ItemStyle allows you to configure the item style
      >
      > HTH
      >
      > Ollie Riches
      >
      > "Bill Gates" <BGates@microso ft.com> wrote in message
      > news:#JYxrySDFH A.1084@tk2msftn gp13.phx.gbl...[color=green]
      >> Hi All,
      >>
      >> I am having a little trouble aligning information in my Datagrid, what I
      >> want to do is align the Header text of a column to the left but the
      >> detail
      >> information of this column to the right.
      >>
      >> I can align a whole column (header and detail) but can not seperate the[/color]
      > two.[color=green]
      >>
      >> Any Ideas?
      >>
      >> Thanks
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...