473,386 Members | 1,715 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,386 software developers and data experts.

Wrapping Columns in a Table

I am having problems trying to wrap items that I get back from a DataSet. For instance, I get a list of 50 states that I want to display in 5 columns, 10 rows. I've looked into the DataGrid and Repeater controls, but can't seem to find how I can do it. I can do it programmatically, but that is a bit quirky. Any advice is appreciated.

Thanks,

David
Nov 18 '05 #1
2 893
If you are simply displaying one item (or a couple you can truncate into a
"single field"), try a DataList. You can use a DataList1.RepeatDirection =
RepeatDirection.Horizontal and DataList1.RepeatColumns = 5.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"David Coe" <dh***@aol.com> wrote in message
news:D0**********************************@microsof t.com...
I am having problems trying to wrap items that I get back from a DataSet. For instance, I get a list of 50 states that I want to display in 5 columns,
10 rows. I've looked into the DataGrid and Repeater controls, but can't
seem to find how I can do it. I can do it programmatically, but that is a
bit quirky. Any advice is appreciated.
Thanks,

David

Nov 18 '05 #2
Use the DataList. You can set its RepeatColumns and RepeatDirection properties to get what you want

HTH
Ti
----- David Coe wrote: ----

I am having problems trying to wrap items that I get back from a DataSet. For instance, I get a list of 50 states that I want to display in 5 columns, 10 rows. I've looked into the DataGrid and Repeater controls, but can't seem to find how I can do it. I can do it programmatically, but that is a bit quirky. Any advice is appreciated

Thanks

David
Nov 18 '05 #3

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

Similar topics

1
by: Steven K | last post by:
Hello, I have long list of names that I would like to wrap across multiple columns (like a newspaper). Are there any suggestions on how to go about this? -- Thanks in advance, Steven
5
by: nimdez | last post by:
Hi, I am working on an existing code base in which a lot of data displayed to the user is formatted in tables. Most tables are printed row-by-row using printf() with "%s" print conversion...
2
by: Andrzej Kaczmarczyk | last post by:
Hi I am experiencing something weird. maybe you could help me. I have two ineditable classes from outsource libraries: DataColumn and GridColumn I have built a wrapper class around...
2
by: Scott | last post by:
I having a problem where I need to turn off the wrapping feature for all columns in my datagrid. Example code would be: <asp:DataGrid id="ResultGrid" runat="server" AutoGenerateColumns="true">...
4
by: rodchar | last post by:
Hey all, I have a datagrid that auto-generate the columns. When I run the app some of the column values are wrapping. How do I prevent the values from wrapping? Do I have to use template...
2
by: james.parish | last post by:
I have a gridview (GV) that I want for every 4th column to wrap to the next line... Maybe I'm using the wrong control...but It will always be one row returnings from dataset. Example: ...
2
by: SenseiHitokiri | last post by:
I learned today that an insert statement I am generating out of a DataSet which gets populated straight from SqlDataReaders is not giving me the same precision that it is stored in the database...
7
by: lister | last post by:
Is this possible? I want fixed height table rows, but long text is wrapping around and causing the cell, and thus the entire row, to increase in height. I want any long text to simply...
1
by: lisa232 | last post by:
Hi All, I have a problem with some javascript code. I am trying to toggle display between two tables upon change of a select box ( to alternate between search forms) eg. one called...
9
by: trondhuso | last post by:
Hi, I have a solution that - at time of writing - has to use tables to render a list of database-results. My challenge though is that we have used iframes and such to render the different lists...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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,...

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.