Gridview: Make text fit into column?

M

Mark B

ASP 3.5 VB.NET

I have a GridView fixed at 950px wide. It has 7 columns.

The first column's items are all hyperlinks. Some however are very long,
e.g.

"Earth.UnitedStates.NewYork.NewYork.CentralCity.5thAvenue.745.Level2.Accounting.FixedAssetMaintenance"

What I want is for the text to wrap for this column. It hasn't been and has
been pushing the overall width of the Gridview to 1200 or more. It does wrap
when there are spaces in the hyperlink label, e.g. "New York" rather than
"NewYork".

How can I get the text to wrap if it's long? E.g., to be:

"Earth.UnitedStates.NewYork.NewYork.Cen
tralCity.5thAvenue.745.Level2.Accounting.F
ixedAssetMaintenance"


Ideally it would cut only at a period:

"Earth.UnitedStates.NewYork.NewYork
..CentralCity.5thAvenue.745.Level2.Accounting.
FixedAssetMaintenance"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top