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

Repeater: Different StyleSheets for alternating rows

P: n/a
Hi All,

I am using ASP.NET Repeater Web Control.
I want to use different stylesheets for alternating rows similar to DataGrid
contorl.
How can I do this?

Thanks In Advance
Sachin

Jun 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Basic breakdown of what's avaiable:

<asp:Repeater id="Repeater1" runat="server">
<HeaderTemplate>
HTML and binding expressions here
</HeaderTemplate>
<ItemTemplate>
HTML and binding expressions here, CSS style class, e.g.
<div style="background-color:#E0E0E0" stuff here </div>
</ItemTemplate>
<AlternatingItemTemplate>
HTML and binding expressions , CSS style class, e.g.
<div style="background-color:#FFCC66"alternating stuff here </div>
</AlternatingItemTemplate>
<SeparatorTemplate>
HTML and binding expressions
</SeparatorTemplate>
<FooterTemplate>
HTML and binding expressions
</FooterTemplate>
</asp:Repeater>

Cheers,
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Sachin" wrote:
Hi All,

I am using ASP.NET Repeater Web Control.
I want to use different stylesheets for alternating rows similar to DataGrid
contorl.
How can I do this?

Thanks In Advance
Sachin
Jun 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.