473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1973
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
I have a datalist (see code below). Assume that the datalist is populated with 10 records of data. How do I programatically grab all the data in ALL the columns of the selected record? I've been...
4
by: Joe Van Meer | last post by:
Hi, Is the datalist meant for one table or can I use it to display information from 2 different tables? Or should I be looking at a datagrid instead? I began my code and kinda ran into a snag...
2
by: Moe Sizlak | last post by:
Hi There, I am wanting to format a datalist into columns, so do I need to use a table rows & columns? or can I use templates and a property at the top of the list itself ? It seems that when I...
0
by: Xiru | last post by:
I would like to retrieve the value from a DataList on postback. I can read the ItemIndex and values from a child TextBox but not cannot seem to find a way to read a databound item on the datalist....
0
by: massimop | last post by:
Hi to all, I use a datalist, that should return a table with 3 columns. The cell of the first column is used to show an image . The cell of the second colun is used to show a * (separator) ....
2
by: Wayne Wengert | last post by:
I have an aspx page I originzlly built in WebMatrix that includes a "<table>" structure to layout the columns using "<tr>" and "<td>" elements (see sample below). When I create a new aspx form in...
2
by: Hrvoje Vrbanc | last post by:
Hi all! I have a DataList with fixed number of columns and variable number of rows (depending of the number of rows in the database). Now, I'd like to put a RadioButton control in every DataList...
5
by: Just Me | last post by:
Given a button name Btn_5 and Index=5 I want to do something like dim zz as string = Btn_??Index??.Text or given an array of buttons, do:
1
by: Arpan | last post by:
The following code displays records from a SQL Server 7 database table in a DataList (when the page loads for the first time, all the records under the column named "FName" in the DB table are...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.