Increase Gridview Column Width

Discussion in 'ASP .Net' started by dmbuso, Aug 24, 2008.

  1. dmbuso

    dmbuso Guest

    How do I increase the default width of a gridview column (just one column,
    the 10th column, named "Notes")?

    In design mode, I changed the width properties of the HeaderStyle,
    ControlStyle, and ItemStyle to 300 px and set Wrap to False for the
    HeaderStyle and ItemStyle. When I accept settings the "Notes" field widens in
    design mode but when I run the web site, the Notes field is back to default
    width.

    I've come across many articles and nothing seems to work for me.

    PS - My gridview is bound to SqlDataSource1 which is a SELECT statement to a
    SQL Server 2005 database table.

    --
    Dave B.
    dmbuso, Aug 24, 2008
    #1
    1. Advertising

  2. dmbuso

    Munna Guest

    Hi,

    Just check whither your other styles are overriding your item's
    width...

    Regards

    Munna
    Munna, Aug 25, 2008
    #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. Replies:
    0
    Views:
    912
  2. Sivaraman.S

    How to increase or decrease the width of the column in datagrid

    Sivaraman.S, Oct 18, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    164
    Scott Mitchell [MVP]
    Oct 18, 2004
  3. Carl Howarth

    DG Column Width vs Table Column Width

    Carl Howarth, Oct 22, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    252
    Eliyahu Goldin
    Oct 24, 2004
  4. Replies:
    1
    Views:
    1,514
  5. dmbuso

    Increase Width of GridView Column

    dmbuso, Aug 24, 2008, in forum: ASP General
    Replies:
    2
    Views:
    170
    dmbuso
    Aug 24, 2008
Loading...

Share This Page