Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
*****ASP.NET 4.0 - VB.NET 2010

hi,
pls help me with this, I have a GridView that has a column that uses LABEL as template field. I want to make this Label be multiline. Could it be possible?

Assuming that your in Column3

Currently my result is this
"This question is for Male his question is for 30 seconds only Thank you"


I want to be like this
"This question is for Male"
"This question is for 30 seconds only"
"Thank you"
Posted

 
Share this answer
 
Comments
TweakBird 29-May-11 10:03am    
My 5!
Abhinav S 29-May-11 10:06am    
Thanks AOE.
TweakBird 29-May-11 13:35pm    
Hey, This is not GIT man.
Sergey Alexandrovich Kryukov 29-May-11 15:50pm    
Sure, a 5.
--SA
Abhinav S 30-May-11 2:15am    
Thank you SA. The OP has still not marked this post as answered so I guess he is not satisfied enough!
If you want to display the text in to 3 lines based on your requirement, use <br/> Tag
<asp:label id="Label1" runat="server" text="This question is for Male<br/>his question is for 30 seconds only<br/>Thank you</asp:Label></pre><br mode=" hold=" />Result will be like below as you want<br mode=" xmlns:asp="#unknown"></asp:label>
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-May-11 15:50pm    
Quite simple, a 5.
--SA

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