GridView column text wrap width

A

AD

Hi,

I have a problem where my text in a GridView column is being wrapped
in the middle of the column and does not fill the full width of the
column, any idea why this would happen, and how I can control it?

Thanks
 
M

Mike

Hi,

What you need to do is add the no wrap to the column. This can be done two
was the first is applied to all columns:

<ItemStyle wrap="False"></ItemStyle>
<HeaderStyle wrap="False" HorizontaAlign="Centre"></HeaderStyle>

The second approach is to only apply it to a column:

<asp:boundColumn DataField..>
<ItemStyle wrap="False" HorizontaAlign="Left"></ItemStyle>
<HeaderStyle wrap="False" HorizontaAlign="Centre"></HeaderStyle>
</asp:boundColumn>

- Mike

---------------------------------------------------------------------------------
<a href="http://www.cogitar.net"> Cogitar Software. (
http://www.cogitar.net ) </a>
http://www.cogitar.net Cogitar Software. (Software Development and Managment
Systems)
http://www.web-dominion.co.uk Web-Dominion. (Web Design and hosting )
http://shop-dominion.com (senery landscape pictur gallery)
 

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,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top