By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

Datagrid or Repeater - Multiple Columns

P: n/a
Hi All,

I have an app which requires a list of coutries to be displayed, so far I
have a datagrid which contains displays the countries Ok, along with flag
images, these are also links to my dtail page - So far so good (Thanks to
Pete Beech for the assistance in getting this far!)

What I would now like is to spread the countries across multiple columns -
e.g. grid/table with 20 countries, 5 rows X 5 columns. (Currently they are
displayed in 1 column)

Is this possible using either datagrid or repeater controls?

Thanks!

Simon.
--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Solved it using the datalist control, useful explanation here...
http://it.maconstate.edu/tutorials/A...pnet08-02.aspx

"Simon Harris" <to*********@makesyoufat.com> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
Hi All,

I have an app which requires a list of coutries to be displayed, so far I
have a datagrid which contains displays the countries Ok, along with flag
images, these are also links to my dtail page - So far so good (Thanks to
Pete Beech for the assistance in getting this far!)

What I would now like is to spread the countries across multiple columns -
e.g. grid/table with 20 countries, 5 rows X 5 columns. (Currently they are
displayed in 1 column)

Is this possible using either datagrid or repeater controls?

Thanks!

Simon.
--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!

Nov 18 '05 #2

P: n/a
Hi Simon,
I would say the DataList would be your best bet, since that has a way of
displaying a list with multiple columns using the RepeatColumns (int) and
RepeatDirection property.

The datagrid can't lay out columns as you want - and I'm not sure about the
Repeater - you might be able to do it, but it won't be as easy as with the
DataList control.

Here are some links - the first one lists all the different options for
displaying lists, (although it isn't actually that clear on laying out
things in a grid style.)

http://msdn.microsoft.com/library/de...ebcontrols.asp
http://msdn.microsoft.com/library/de...listlayout.asp

Cheers,
Pete

"Simon Harris" <to*********@makesyoufat.com> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
Hi All,

I have an app which requires a list of coutries to be displayed, so far I
have a datagrid which contains displays the countries Ok, along with flag
images, these are also links to my dtail page - So far so good (Thanks to
Pete Beech for the assistance in getting this far!)

What I would now like is to spread the countries across multiple columns -
e.g. grid/table with 20 countries, 5 rows X 5 columns. (Currently they are
displayed in 1 column)

Is this possible using either datagrid or repeater controls?

Thanks!

Simon.
--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.