473,785 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="#0 06699"
DataSourceID="X mlDataSource1"

GridLines="Both " ShowFooter="Fal se" ShowHeader="Fal se" BackColor="Whit e"
Font-Bold="False" Font-Italic="False" Font-Overline="False "
Font-Strikeout="Fals e" Font-Underline="Fals e" RepeatColumns=" 3"
RepeatDirection ="Horizontal ">

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

</asp:DataList>

TIA
Aaron
Feb 20 '06 #1
3 1990
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="backgrou nd-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********@aar onminoo.com> wrote in message
news:OM******** ******@tk2msftn gp13.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="#0 06699"
DataSourceID="X mlDataSource1"

GridLines="Both " ShowFooter="Fal se" ShowHeader="Fal se" BackColor="Whit e"
Font-Bold="False" Font-Italic="False" Font-Overline="False "
Font-Strikeout="Fals e" Font-Underline="Fals e" 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**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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="backgrou nd-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********@aar onminoo.com> wrote in message
news:OM******** ******@tk2msftn gp13.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="#0 06699"
DataSourceID="X mlDataSource1"

GridLines="Both " ShowFooter="Fal se" ShowHeader="Fal se" BackColor="Whit e"
Font-Bold="False" Font-Italic="False" Font-Overline="False "
Font-Strikeout="Fals e" Font-Underline="Fals e" 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********@aar onminoo.com> wrote in message
news:eo******** ******@TK2MSFTN GP09.phx.gbl...
Ken,

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

TIA

Aaron
"Ken Cox - Microsoft MVP" <BA**********@h otmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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="backgrou nd-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********@aar onminoo.com> wrote in message
news:OM******** ******@tk2msftn gp13.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="#0 06699"
> DataSourceID="X mlDataSource1"
>
> GridLines="Both " ShowFooter="Fal se" ShowHeader="Fal se"
> BackColor="Whit e"
> Font-Bold="False" Font-Italic="False" Font-Overline="False "
> Font-Strikeout="Fals e" Font-Underline="Fals e" 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
527
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 trying to use the FindControl method inside the ItemCommand event of the DataList to get the contents of the Label below, but it appears that the DataBinder code is making it a child control of the lblInstructorEmplidDisplayed control, rather than...
4
2482
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 where my last two columns I am displaying are ID fields, one for clientid and the other for empid. What I would really like is to display their actual names instead of the ids.
2
1771
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 try to format the datalist I can't get it to look like a normal html table. Moe row1 = col1 col2 col3 col4 col 5
0
1451
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. Here is some code to help clarify. I want to display the items from a shopping list that had a unit number filled in a textbox next to the product: ' Create a holding place for list items with units filled in Dim itemsUnits As New DataSet Dim...
0
2895
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) . The cell of the third column is used to show an image . Here the code: < asp:DataList id="DataList1" runat="server" RepeatColumns="2"
2
3600
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 my VSNE2003 solution, add a datalist component with table layout and paste that code, it doesn't like the table related tags (<table>, <tr>, etc.). Using VSNET2003 what is the correct way to specify the "table" layout (rows and columns) ...
2
1253
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 cell (beside the data displayed from the database), but in such a way that all the RadioButtons belong to the same group, i.e. that only one of all those RadioButtons could be checked at the same time. Also, there would be a Button below the...
5
1914
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
1590
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 displayed as links which, when clicked, displays the records existing in the other columns corresponding to the link clicked): <%@ Page Language=VB Explicit="true" %> <%@ Import Namespace="System.Data" %> <%@ Import...
0
10319
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10087
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.