Connecting Tech Pros Worldwide Forums | Help | Site Map

Increase Gridview Column Width

=?Utf-8?B?ZG1idXNv?=
Guest
 
Posts: n/a
#1: Aug 24 '08
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
Guest
 
Posts: n/a
#2: Aug 25 '08

re: Increase Gridview Column Width


Hi,

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

Regards

Munna
Closed Thread