469,957 Members | 2,716 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,957 developers. It's quick & easy.

Datagrid or Repeater - Multiple Columns

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
2 6910
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
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.

Similar topics

1 post views Thread by Lalit Bhatia | last post: by
reply views Thread by Lalit Bhatia | last post: by
2 posts views Thread by Stephen Miller | last post: by
2 posts views Thread by John Hoge | last post: by
2 posts views Thread by News | last post: by
3 posts views Thread by Maziar Aflatoun | last post: by
reply views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.