Repeater Control - Skipping Records

R

rhungund

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.
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top