Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
I am displaying Description column from database Table in gridview. It display in single line but I want to display it in multiple line.how Can I do?
Posted

GridView is rendered as HTML table on client-side. Just insert the line break
<br>
at the appropriate point (say every 15 characters) in the string. Refer:
http://stackoverflow.com/questions/4029875/how-to-wrap-text-in-boundfield-column-in-gridview[^]
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 5-Jul-15 1:23am    
5. :-)
—SA
Peter Leow 5-Jul-15 4:35am    
Thank you, Sergey.
Try-
HTML
itemstyle-wrap="True";


Hope, it helps :)
 
Share this answer
 
v2

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