Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > GridView columns don't respect width or wrap properties!

Reply
Thread Tools

GridView columns don't respect width or wrap properties!

 
 
Dan English
Guest
Posts: n/a
 
      07-06-2006
I have a GridView control with manually added bound columns. I have
specified ItemStyle.Width=125px and ItemStyle.Wrap=false for several
columns. It doesn't seem to respect either of these properties, there is no
effect at all. What can I do to make them work?

Thanks,
Dan


 
Reply With Quote
 
 
 
 
Akash Deep
Guest
Posts: n/a
 
      07-14-2006
In GridView RowDataBound Event
Set the Column wrap=false
i.e e.Row.cells(0).Wrap=False

Akash Deep
http://www.velocityreviews.com/forums/(E-Mail Removed)

---
Posted via www.DotNetSlackers.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gridview: column width, wrap simplification? Beemer Biker ASP .Net 0 01-26-2009 06:35 AM
GridView column text wrap width AD ASP .Net 1 04-18-2007 12:14 PM
fixed-width column and variable-width columns mixed ssk HTML 5 10-30-2006 07:50 AM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
Table width and columns width kris HTML 11 11-18-2003 06:49 AM



Advertisments