Connecting Tech Pros Worldwide Forums | Help | Site Map

Increase Width of GridView Column

=?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.

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

--
Dave B.

Bob Barrows [MVP]
Guest
 
Posts: n/a
#2: Aug 24 '08

re: Increase Width of GridView Column


dmbuso wrote:
Quote:
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.
>
PS - My gridview is bound to SqlDataSource1 which is a SELECT
statement to a SQL Server 2005 database table.
There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic (COM-based) asp newsgroup.
ASP.Net bears very little resemblance to classic ASP so, while you may be
lucky enough to find a dotnet-knowledgeable person here who can answer your
question, you can eliminate the luck factor by posting your question to a
group where those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


=?Utf-8?B?ZG1idXNv?=
Guest
 
Posts: n/a
#3: Aug 24 '08

re: Increase Width of GridView Column


Sorry, I will post this to the microsoft.public.dotnet.framework.aspnet
newsgroup.
--
Dave B.
Closed Thread


Similar ASP / Active Server Pages bytes