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

simple repeater question

P: n/a
helllo,

in the repeater control there is the <itemtemplate> tag which executes on
every iteration of the containing data.

is it possible to make the repeater do something every nth iteration (ie:
do something every 3rd item).

what i want to do is display a list of 30 items as checkboxes across 3
columns. not sure how to do this.

thanks
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
my problem is this:

i have a dataset and repeater control. i can manage to display the items in
1 column by doing something like:

<headertemplate>
<table>
</headertemplate>

<itemtemplate>
<tr>
<td>[item goes here]</td>
</tr>
</itemtemplate>

<footertemplate>
</table>
</footertemplate>

this will give the following look in the browser:

item1
item2
item3
....etc
BUT what i want to do though, is show all the items across 3 columns, ie:

item1 item2 item3
item4 item5 item6
item7 item8 item9

etc.
how can i do this? i want to try and avoid using the xsl transform method
because i want the items to be server controls (check boxes).

thanks a lot.

"Bin Song, MCP" <an*******@discussions.microsoft.com> wrote in message
news:6B**********************************@microsof t.com...
Hi, Suzy,

Can you explain more about your question? Or give a visual representation?

Bin Song, MCP

Nov 18 '05 #2

P: n/a
Hi, Suzy

Can you use DataList instead?
DataList has built-in support for repeated layout either horizontal or vertica
Please see
http://msdn.microsoft.com/library/de...glistlayout.as

Bin Song, MCP
Nov 18 '05 #3

P: n/a
Bin Song,

That is PERFECT!

thank you!
"Bin Song, MCP" <an*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Hi, Suzy,

Can you use DataList instead?
DataList has built-in support for repeated layout either horizontal or vertical Please see:
http://msdn.microsoft.com/library/de...listlayout.asp
Bin Song, MCP

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.