DataList Indentation

S

SJ

I'm using codebehind to populate my datalist, but having a lot of trouble
keeping the
indentation of the datalist in place. This is what i'm doing right now :

<asp:datalist id="LogList" Runat="server" width=150 Itemstyle-wrap=true>
<ItemTemplate>
<table cellSpacing="0" cellPadding="0" width="150" border="0"
class="bodytext">
<tr>
<td width="40">&nbsp;</td>
<td width="40" align="left">
<asp:checkbox id="chkbox" Runat="server"
Checked="False"></asp:checkbox></td>
<td align="left" width="30">
<asp:label id="VIP" Runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"isVIP")%>'>
</asp:label></td>
<td align="left" width="40">
<asp:HyperLink ID="isVM" Runat=server
ImageUrl='<%#DataBinder.Eval(Container.DataItem,"isVM")%>'
NavigateUrl='<%#DataBinder.Eval(Container.DataItem,"vmURL")%>'>
</asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:datalist>

If I exceed the assigned width(40 in this case) of a column, instead of the
text wrapping to the next line,
the indentation goes totally crazy.

thanks,
-SJ
 
A

aa7im

FYI: text will only wrap if there is a space in the text. A series of
charachtes with no spaces will not wrap...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top