right align a number column in a datagrid

Discussion in 'ASP .Net Datagrid Control' started by Arne, Jan 5, 2005.

  1. Arne

    Arne Guest

    How can right align a number column in a datagrid?
    Arne, Jan 5, 2005
    #1
    1. Advertising

  2. With a CSS rule
    text-align:right;


    Eliyahu

    "Arne" <> wrote in message
    news:...
    > How can right align a number column in a datagrid?
    Eliyahu Goldin, Jan 6, 2005
    #2
    1. Advertising

  3. Arne

    Arne Guest

    Eliyahu,
    ItemStyle-HorizontalAlign=Right works even better.
    arne


    "Eliyahu Goldin" wrote:

    > With a CSS rule
    > text-align:right;
    >
    >
    > Eliyahu
    >
    > "Arne" <> wrote in message
    > news:...
    > > How can right align a number column in a datagrid?

    >
    >
    >
    Arne, Jan 6, 2005
    #3
  4. Depends what you are after. If it is the only formatting you need - may be.
    But if you format also colors, fonts etc, you would better put it in one css
    style. Also, if it is in a style, you can apply it to headers, alternating
    items etc while keeping it defined in one place only..

    Eliyahu

    "Arne" <> wrote in message
    news:...
    > Eliyahu,
    > ItemStyle-HorizontalAlign=Right works even better.
    > arne
    >
    >
    > "Eliyahu Goldin" wrote:
    >
    > > With a CSS rule
    > > text-align:right;
    > >
    > >
    > > Eliyahu
    > >
    > > "Arne" <> wrote in message
    > > news:...
    > > > How can right align a number column in a datagrid?

    > >
    > >
    > >
    Eliyahu Goldin, Jan 6, 2005
    #4
    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. Kay
    Replies:
    2
    Views:
    7,146
  2. John E.
    Replies:
    3
    Views:
    4,459
    masoud bayan
    Mar 25, 2005
  3. Bogdan
    Replies:
    1
    Views:
    784
    Bogdan
    Jun 16, 2009
  4. John E.

    Move bound column to right of dynamic column in datagrid?

    John E., Mar 24, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    231
    Elton Wang
    Mar 28, 2005
  5. Oran
    Replies:
    2
    Views:
    533
Loading...

Share This Page