468,780 Members | 2,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,780 developers. It's quick & easy.

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

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
Feb 20 '06 #1
3 1836
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" <fr********@aaronminoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
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

Feb 21 '06 #2
Ken,

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

TIA

Aaron
"Ken Cox - Microsoft MVP" <BA**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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" <fr********@aaronminoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
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


Feb 21 '06 #3
In that case, there's nothing to do. That's how your code rendered on my
system.

"Aaron" <fr********@aaronminoo.com> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
Ken,

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

TIA

Aaron
"Ken Cox - Microsoft MVP" <BA**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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" <fr********@aaronminoo.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
> 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
>
>



Feb 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mark | last post: by
4 posts views Thread by Joe Van Meer | last post: by
2 posts views Thread by Moe Sizlak | last post: by
reply views Thread by Xiru | last post: by
reply views Thread by massimop | last post: by
2 posts views Thread by Wayne Wengert | last post: by
2 posts views Thread by Hrvoje Vrbanc | last post: by
5 posts views Thread by Just Me | last post: by
1 post views Thread by Arpan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.