Connecting Tech Pros Worldwide Help | Site Map

Increase Width of GridView Column

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 24th, 2008, 01:45 PM
=?Utf-8?B?ZG1idXNv?=
Guest
 
Posts: n/a
Default Increase Width of GridView Column

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.

  #2  
Old August 24th, 2008, 01:45 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default 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"


  #3  
Old August 24th, 2008, 01:55 PM
=?Utf-8?B?ZG1idXNv?=
Guest
 
Posts: n/a
Default RE: Increase Width of GridView Column

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.