Autofit Datagrid Column Width

Discussion in 'ASP .Net Datagrid Control' started by Jon, Feb 23, 2005.

  1. Jon

    Jon Guest

    Hi there,

    Is there anyway to "autofit" a column in an ASP .Net datagrid based on the
    length of the data that will be displayed in the grid ?(Similar to the way
    Excel does it's autofit command on columns) I know about using a BoundColumn
    and setting the width there by pixel or percent, I was just curious as if
    there was a way to handle this in code or by setting a propery.
    --
    Any info will be very appreciated!

    Jon
    Jon, Feb 23, 2005
    #1
    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. hilz
    Replies:
    0
    Views:
    3,354
  2. elena.me
    Replies:
    0
    Views:
    1,309
    elena.me
    Nov 23, 2005
  3. Stefan Mueller
    Replies:
    15
    Views:
    7,470
    Stefan Mueller
    Jun 16, 2006
  4. Lance Hoffmeyer

    excel column autofit

    Lance Hoffmeyer, Jun 12, 2007, in forum: Python
    Replies:
    2
    Views:
    786
    John Machin
    Jun 13, 2007
  5. Carl Howarth

    DG Column Width vs Table Column Width

    Carl Howarth, Oct 22, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    263
    Eliyahu Goldin
    Oct 24, 2004
Loading...

Share This Page