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

Forum statistics

Threads
473,770
Messages
2,569,588
Members
45,094
Latest member
PollyBlau4

Latest Threads

Top