Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataList empty items

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
US
If you have a datalist that displays 3 items vertically, and you only have 1 item to display it will display the one (with a border) that is 130px wide. The other 2 are displayed as about 3 pixels with the border around them. Is there a way to expand the items on the screen that is empty with the borders?

Code:
<asp:DataList ID="DataList1" runat="server"
   RepeatDirection="Vertical" RepeatColumns="3" BorderColor="#C0C0C0" BorderWidth="1"
   BorderStyle="Solid" GridLines="Vertical" CellPadding="3" ItemStyle-BorderColor="Red">
   <ItemTemplate>
      <table style="width: 130px; text-align:center">
         <tr>
...

Thanks,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top