Click here to Skip to main content
15,904,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,

I have a very long continious text which is been displayed in Gridview. I just cannot wrap it to a fixed length.
Please help. :((
Posted
Updated 15-Dec-10 19:51pm
v2

First Approach you can do
 <br />
<itemstyle wrap="False"><br />
<headerstyle wrap="False" horizontaalign="Centre"></headerstyle><br />



The second approach is to only apply it to a column:
<br />
<asp:boundcolumn datafield="" xmlns:asp="#unknown"><br />
<itemstyle wrap="False" horizontaalign="Left"></itemstyle><br />
<headerstyle wrap="False" horizontaalign="Centre"></headerstyle><br />
 
Share this answer
 
v3
you can by 2 ways(one is CSS way)

Wrapping text in GridView cell[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900