471,092 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Repeater Control - Skipping Records

Hi all...i'm using the repeater control to display some records.
The first record however needs to be displayed differently - it's shown
as a featured item.
The remainding records will be displayed in a repeating, templated
fashion.

I would like to, possibly in the ItemDataBound or ItemCreated event
handlers to check:

if first record then
populate variables and not display in the repeater
else
display in the repeater control
any ideas or suggestions? thanks.

Nov 29 '05 #1
1 1184
The best event for you to use is PreRender, since in this event the repeater
is already fully built and you can easily navigate to the required record.
You can't delete the record, but you can try hiding it by setting css rule
"display:none".

Eliyahu

<rh******@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi all...i'm using the repeater control to display some records.
The first record however needs to be displayed differently - it's shown
as a featured item.
The remainding records will be displayed in a repeating, templated
fashion.

I would like to, possibly in the ItemDataBound or ItemCreated event
handlers to check:

if first record then
populate variables and not display in the repeater
else
display in the repeater control
any ideas or suggestions? thanks.

Nov 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by francois | last post: by
4 posts views Thread by MattB | last post: by
7 posts views Thread by charliewest | last post: by
3 posts views Thread by Emma Middlebrook | last post: by
12 posts views Thread by =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.