ShawnMolloy
MIS
How do I stop from adding this item while examing each item in a repeater control through the RepeaterItemEventHandler event handler?
Thank you!
Shawn Molloy
Seattle, WA
Code:
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
// skip if the album is empty
System.Data.DataRowView drv = (System.Data.DataRowView)(e.Item.DataItem);
int imageCount = int.Parse(drv.Row["ImageCount"].ToString());
if(imageCount == 0)
// SKIP?!
...
}
Thank you!
Shawn Molloy
Seattle, WA