Hey everyone,
Within a repeater control, is there a way of de-binding certain items before the page is rendered?
Currently we have a collection of items being bound to a repeater and if the item is not part of the current language, we hide the item.
I'm wanting to be able to do a count on the repeater and get a valid number back. A count that doesn't also include the hidden items.
Is it possible to de-bind specific items perhaps in the ItemDataBound
event?
Update
For each item in the collection we're binding, we check the database during the ItemDataBound
for further information about the item, such as language etc. This is currently stopping us from filtering the bound data before binding it.