*My apologies I posted this in the data controls forum but i'm cross posting here as it's more likely to get solved
I've seen a few examples of this online which seem to indicate my code is in the wrong order or I need to if-statement the dataBinding parameter but I nothing i've tried works.
Protected Overloads Overrides Function CreateChildControls(ByVal dataSource As System.Collections.IEnumerable, ByVal dataBinding As Boolean) As Integer
Dim count As Integer = 0
For Each dataItem As Object In dataSource
If ItemTemplate IsNot Nothing Then
Dim item As New GroupingRepeaterItem(dataItem, count)
' need to add to controls collection
' need to support <%# %> expressions
If SeparatorTemplate IsNot Nothing Then
If count < CType(dataSource, DataView).Count - 1 Then
' increase controls counter
count += 1
Many thanks in advance.
View Complete Post