Repeater : AlternateItems when no AlternateItems are defined.

C

craigkenisston

I discovered by accident, that ItemCreated sees
ListItemType.AlternatingItems even when no alternate items are defined.
I thought, that this method would just receive all the EventArgs as as
normal ListItemType.Item,since I did not defined AlternateItemTemplates
in my repeater.
Funny, isn't it ?
 
C

Ciaran

AlternatingItems are not a template, they are just every other item. It is
built in to allow things like alternate coloring to make things easier to
see. If you dont want to treat them different to Items then they are
equivilant.

HTH

Ciaran
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top