GridView column text wrap width

  • Thread starter Thread starter AD
  • Start date Start date
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
 
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)
 
Back
Top