Link to home
Start Free TrialLog in
Avatar of khawkins96
khawkins96

asked on

ASP.NET Repeater Control - Can't get columns to align when a cell is empty

When the data is displayed in my repeater control, the columns aren't perfectly aligned when there is no value in one of the cells. For the table layout, I've used pixels and percentages for the columns and nothing is working. Here's the table layout....

<asp:Repeater id="parentrepeater" runat="server">
<itemtemplate>
<TABLE style="FONT-SIZE: 8pt; FONT-FAMILY: 'Microsoft Sans Serif'" width="750" border="1">
<tr><td width="8%" valign="top" align="left"><%# DataBinder.Eval (Container.DataItem, "projectid" ) %></td>
<td width="15%" valign="top" align="left"><%# DataBinder.Eval(Container.DataItem, "NewName") %></td>
<td width="15%" valign="top" align="left"><%# DataBinder.Eval(Container.DataItem, "prjleadfnm") %>&nbsp;<%# DataBinder.Eval(Container.DataItem, "prjleadlnm") %></td>
<td width="15%" valign="top" align="left"><%# DataBinder.Eval(Container.DataItem, "busleadfnm") %>&nbsp;<%# DataBinder.Eval(Container.DataItem, "busleadlnm") %></td>
<td width="5%" valign="top" align="center"><%# DataBinder.Eval(Container.DataItem, "priority") %></td>
<td width="15%" valign="top" align="left"><%# DataBinder.Eval(Container.DataItem, "corpinitnbr") %>&nbsp;<%# DataBinder.Eval(Container.DataItem, "corpinitnm") %></td>
<td width="10%" valign="top" align="left">
</table>
</ItemTemplate>
</asp:Repeater>

Any suggestions for me?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of khawkins96
khawkins96

ASKER

Thanks. I"ll give that a try.