Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

GridView forcing wordwrap

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
guy - 29 Oct 2007 15:33 GMT
I have a GridView with column widths defined as percentages however if a
column has a row that is longer than the defined width the column width
increases to compensate.

If I turn Wrap on this works but only if there are spaces in the text.
How can I force wrapping (or scrolling) ft the text is is too long for the
box? e.g. a long email address?

The GridView is not editable.

Guy
Cowboy (Gregory A. Beamer) - 29 Oct 2007 16:18 GMT
You can add the row data bound event and break long email addresses by
adding a space after so many characters. That will break the address.
Otherwise, the rules of HTML are to only break on spaces and other
"breakable" characters (hyphens, etc.).

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************

| Think outside the box!

*************************************************
>I have a GridView with column widths defined as percentages however if a
> column has a row that is longer than the defined width the column width
[quoted text clipped - 7 lines]
>
> Guy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.