Create such a seperator template
<SeperatorTemplate><br /></SeperatorTemplate>
Then you need to bind the ItemDataBound event before you call DataBind () on the repeater. In this case, you look at the item counter and display, when you can divide the number of items by 5, for example:
if (e.Item.ItemType == ListItemType.Seperator)
e.Item.Visible = ((e.Item.Parent as Repeater).Items.Count % 5 == 0);
source
share