473,769 Members | 3,923 Online
Bytes | Software Development & Data Engineering Community
+ 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*******@nospa m.com
Nov 18 '05 #1
2 5607
Thanks!

--
mo*******@nospa m.com
"Bill Borg" <an*******@disc ussions.microso ft.com> wrote in message
news:86******** *************** ***********@mic rosoft.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*******@nospa m.com

Nov 18 '05 #2
Thanks!

--
mo*******@nospa m.com
"Bill Borg" <an*******@disc ussions.microso ft.com> wrote in message
news:86******** *************** ***********@mic rosoft.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*******@nospa m.com

Nov 18 '05 #3

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

Similar topics

0
325
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 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.
1
2322
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 have a checkbox bound to that column (bit in SQL Server). I have tried everything and can't see a way to do this without createing an event handler for DataBind() of the CheckBox control. Surely there has to be a better way (and please don't...
0
981
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 my datalist in my itemtemplate. Do I use the same notation as this? Or is there something I am missing? <%#Container.DataItem("SECONDTABLEFIELD")%>
1
4678
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? Here is my code: <asp:DataList id=dlKommuner runat="server" Width="400px" RepeatColumns="2" CellPadding="3"> <AlternatingItemStyle Width="200px" CssClass="arow"> </AlternatingItemStyle>
1
2571
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 when the user is looking at the data, the columns move back and forth among the DataLists. I don't know how well this will appear in text, but it looks something like: XXX XXXXX XXXXX XXX XXXX XXXXX
5
3791
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...: <asp:datalist id="DataList1" runat="server"> <HeaderTemplate> <table border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td width="100">First Name</td>
3
1989
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" 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">
3
1189
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 long, and I would like to display it in two or three columns (side by side). What would be the best way to accomplish this? Help! Thanks
3
2409
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 ListBox normally uses a variable-width font, that would not work). Is there a control like the DataList (a control that uses templates and databinding) that displays the items in a scrollable manner? One idea that I had, although it sounds rather...
0
1086
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 is only displayed in 1 column. I also have a problem after a group with an not even number of items. In that case the separator is only displayed in the second column. Thanks Paul S
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
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...
1
9997
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,...
1
7413
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
6675
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
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...
1
3965
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
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.