DataGrid is there a way to make a column as wide as the longest text?

Discussion in 'ASP .Net' started by needin4mation@gmail.com, Jul 27, 2005.

  1. Guest

    I can shorten and lengthen a grid column with the width property, but
    can it be done real time without my having to do anything? I don't
    want the columns as wide as they are, but sometimes they might have to
    be because of the length of the text.

    Thanks for any help.
     
    , Jul 27, 2005
    #1
    1. Advertising

  2. Mythran Guest

    <> wrote in message
    news:...
    >I can shorten and lengthen a grid column with the width property, but
    > can it be done real time without my having to do anything? I don't
    > want the columns as wide as they are, but sometimes they might have to
    > be because of the length of the text.
    >
    > Thanks for any help.
    >


    If you don't set a specified width of a column, it will grow up to the
    maximum allowed width.

    hth,
    Mythran
     
    Mythran, Jul 27, 2005
    #2
    1. Advertising

  3. Guest

    Right, I want it to be only as long as the text requires.
     
    , Jul 27, 2005
    #3
    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. Web Developer

    char 8bit wide or 7bit wide in c++?

    Web Developer, Jul 31, 2003, in forum: C++
    Replies:
    2
    Views:
    588
    John Harrison
    Jul 31, 2003
  2. Disc Magnet
    Replies:
    2
    Views:
    717
    Jukka K. Korpela
    May 15, 2010
  3. Disc Magnet
    Replies:
    2
    Views:
    791
    Neredbojias
    May 14, 2010
  4. A. Farber
    Replies:
    3
    Views:
    157
    Big and Blue
    May 3, 2004
  5. Martin Rinehart

    80 columns wide? 132 columns wide?

    Martin Rinehart, Oct 31, 2008, in forum: Javascript
    Replies:
    16
    Views:
    177
    John W Kennedy
    Nov 13, 2008
Loading...

Share This Page