Wrapping Columns in a Table

G

Guest

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
 
C

Cowboy \(Gregory A. Beamer\)

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 said:
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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top