Increase Gridview Column Width

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?ZG1idXNv?=

    Increase Gridview Column Width

    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.
  • Munna

    #2
    Re: Increase Gridview Column Width

    Hi,

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

    Regards

    Munna

    Comment

    Working...