473,465 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to put spacer column between 2 columns in datalist

using vb.net I have a datalist where the Repeat layout has:
Columns 2
Direction Horizontal
Layout Table

I want to put a spacer column inbetween the 2 columns for better control of
the distance between these 2 columns. Is this possible? And by the way, I
find it a little difficult to control the spacing and alignment of template
items (cells). For examle the right cell/column is a little lower than the
left one.

--
mo*******@nospam.com
Nov 18 '05 #1
2 5572
Thanks!

--
mo*******@nospam.com
"Bill Borg" <an*******@discussions.microsoft.com> wrote in message
news:86**********************************@microsof t.com...
Not sure if this is the *best* way to do this, but presuming this is your same example with name/address, etc., I'd wrap that whole block within a
table, and use cellpadding/cellspacing to create the extra space, and that
will probably clean up your other alignment issue. For your own sanity
someday, you might also consider creating a user control for that block, to
clean up the syntax in the template and make it easier to modify later.
----- moondaddy wrote: -----

using vb.net I have a datalist where the Repeat layout has:
Columns 2
Direction Horizontal
Layout Table

I want to put a spacer column inbetween the 2 columns for better control of the distance between these 2 columns. Is this possible? And by the way, I find it a little difficult to control the spacing and alignment of template items (cells). For examle the right cell/column is a little lower than the left one.

--
mo*******@nospam.com

Nov 18 '05 #2
Thanks!

--
mo*******@nospam.com
"Bill Borg" <an*******@discussions.microsoft.com> wrote in message
news:86**********************************@microsof t.com...
Not sure if this is the *best* way to do this, but presuming this is your same example with name/address, etc., I'd wrap that whole block within a
table, and use cellpadding/cellspacing to create the extra space, and that
will probably clean up your other alignment issue. For your own sanity
someday, you might also consider creating a user control for that block, to
clean up the syntax in the template and make it easier to modify later.
----- moondaddy wrote: -----

using vb.net I have a datalist where the Repeat layout has:
Columns 2
Direction Horizontal
Layout Table

I want to put a spacer column inbetween the 2 columns for better control of the distance between these 2 columns. Is this possible? And by the way, I find it a little difficult to control the spacing and alignment of template items (cells). For examle the right cell/column is a little lower than the left one.

--
mo*******@nospam.com

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: moondaddy | last post by:
using vb.net I have a datalist where the Repeat layout has: Columns 2 Direction Horizontal Layout Table I want to put a spacer column inbetween the 2 columns for better control of...
1
by: Bigtoga | last post by:
Okay - I'm going crazy here trying to figure out how to do this - here goes: I have a DataList populated by a DataReader. In the DataReader, a column is present called "IsInCategory". I want to...
0
by: Joe Van Meer | last post by:
Hi, I have a datalist that is bound to a dataset that contains 3 tables and relations are created between these tables. My question is how to reference data from columns in the second table in...
1
by: Eirik Eldorsen | last post by:
I'm trying to set alternating bgcolor for a datalist with 2 columns. My problem is that its the alternating cell that get the bgcolor, not the row. Is it possible to set alternating color of rows?...
1
by: Rachel Devons | last post by:
All, I have a table with three rows, and within each row I have a DataList that is set to use 3 columns. The problem I'm having is that each DataList sets it's columns to be different widths so...
5
by: Ben Fidge | last post by:
I'm using DataList to present tabular data but am often having problems with some rows column alignment being out of synch with the rest of the rows. My DataList looks similar to this...: ...
3
by: Aaron | last post by:
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"...
3
by: trvlDev | last post by:
I am using ASP 2.0 connecting to a SQL database. I retrieve one field of data from one of the tables and return the results to the screen - currently into a DataList. Well, the column is now too...
3
by: Nathan Sokalski | last post by:
I am looking to create a multi-column list that is scrollable, kind of like a ListBox control, only I need a way to align the columns of text that I will have (I would use spaces, but because the...
0
by: =?Utf-8?B?UGF1bCBT?= | last post by:
Hi I want to make a 2-column list of historical data grouped by date. Each group of data must have a separator that spans over both columns. I have tried to do it with a datalist but the separator...
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
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
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.