How do you get this datalist more like a grided table of 3 columns

A

Aaron

How do you get this datalist more like a grided table of 3 columns?
Here is what I have but it is not in true columns.
<asp:DataList ID="DataList1" runat="server" BorderColor="#006699"
DataSourceID="XmlDataSource1"

GridLines="Both" ShowFooter="False" ShowHeader="False" BackColor="White"
Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" RepeatColumns="3"
RepeatDirection="Horizontal">

<ItemTemplate><%# XPath(".")%></ItemTemplate>

</asp:DataList>

TIA
Aaron
 
K

Ken Cox - Microsoft MVP

Hi Aaron,

It looks like a table with columns to me and the output is formatted that
way.

<table id="Table1" border="1" cellspacing="0" rules="all"
style="background-color: White;
border-color: #006699; font-weight: normal; font-style: normal;
text-decoration: none;
border-collapse: collapse;">
<tr>
<td>Item 0 </td>
<td>Item 1 </td>
<td>Item 2 </td>
</tr>
<tr>
<td>Item 3 </td>
<td>Item 4 </td>
<td>Item 5 </td>
</tr>
</table>

What is it that you need it to look like?

Ken
Microsoft MVP [ASP.NET]
 
A

Aaron

Ken,

Yes. That is how I would like it too look like.

TIA

Aaron
Ken Cox - Microsoft MVP said:
Hi Aaron,

It looks like a table with columns to me and the output is formatted that
way.

<table id="Table1" border="1" cellspacing="0" rules="all"
style="background-color: White;
border-color: #006699; font-weight: normal; font-style: normal;
text-decoration: none;
border-collapse: collapse;">
<tr>
<td>Item 0 </td>
<td>Item 1 </td>
<td>Item 2 </td>
</tr>
<tr>
<td>Item 3 </td>
<td>Item 4 </td>
<td>Item 5 </td>
</tr>
</table>

What is it that you need it to look like?

Ken
Microsoft MVP [ASP.NET]


Aaron said:
How do you get this datalist more like a grided table of 3 columns?
Here is what I have but it is not in true columns.
<asp:DataList ID="DataList1" runat="server" BorderColor="#006699"
DataSourceID="XmlDataSource1"

GridLines="Both" ShowFooter="False" ShowHeader="False" BackColor="White"
Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" RepeatColumns="3"
RepeatDirection="Horizontal">

<ItemTemplate><%# XPath(".")%></ItemTemplate>

</asp:DataList>

TIA
Aaron
 
K

Ken Cox - Microsoft MVP

In that case, there's nothing to do. That's how your code rendered on my
system.

Aaron said:
Ken,

Yes. That is how I would like it too look like.

TIA

Aaron
Ken Cox - Microsoft MVP said:
Hi Aaron,

It looks like a table with columns to me and the output is formatted that
way.

<table id="Table1" border="1" cellspacing="0" rules="all"
style="background-color: White;
border-color: #006699; font-weight: normal; font-style: normal;
text-decoration: none;
border-collapse: collapse;">
<tr>
<td>Item 0 </td>
<td>Item 1 </td>
<td>Item 2 </td>
</tr>
<tr>
<td>Item 3 </td>
<td>Item 4 </td>
<td>Item 5 </td>
</tr>
</table>

What is it that you need it to look like?

Ken
Microsoft MVP [ASP.NET]


Aaron said:
How do you get this datalist more like a grided table of 3 columns?
Here is what I have but it is not in true columns.
<asp:DataList ID="DataList1" runat="server" BorderColor="#006699"
DataSourceID="XmlDataSource1"

GridLines="Both" ShowFooter="False" ShowHeader="False"
BackColor="White"
Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" RepeatColumns="3"
RepeatDirection="Horizontal">

<ItemTemplate><%# XPath(".")%></ItemTemplate>

</asp:DataList>

TIA
Aaron
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top