Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show the value in datacolumn 'descriptionstatic' in datalist. I have set repeatcolumn to 3 in the dtatalist. The length of datacolumn is 200 varchar. The data is retrieved and shown in the datalist but my problem is that the data shown runs as a single line and overlaps the next column of the datalist. How to show it in multiple lines, so that it will not overlap the next column of the datalist.

XML
<tr>
   <td >
   <p align="left"  style=" font-family:Verdana; font-size:smaller; font-weight:normal;">
   About the product:
   <asp:Label ID="Label11" runat = "server"  Width="55" Height="80"
   Text=' <%# DataBinder.Eval(Container.DataItem, "DescriptionStatic")%>'>
   </asp:Label>
   </b>
   </p>
   </td>
   </tr>
Posted

hi try to increase width of label and try,and also increase width of datalist coloumn

ASP.NET
<asp:label id="Label11" runat="server" width="400" height="80" xmlns:asp="#unknown">
   Text=' <%# DataBinder.Eval(Container.DataItem, "DescriptionStatic")%>'></asp:label>
 
Share this answer
 
v2
Comments
S.Rajendran from Coimbatore 18-Mar-14 4:47am    
No.Not working.
try to use "<br />" inside your text for line break
 
Share this answer
 
Comments
S.Rajendran from Coimbatore 18-Mar-14 5:34am    
I used textbox to come out of the problem.
[no name] 18-Mar-14 5:51am    
ok that's good

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