+2003-12-15 Alon Gazit <along@mainsoft.com>
+ * Repeater.cs: Change the implementation of CreateControlHierarchy().
+ The current implementation renders extra Header and footer
+ without Repeater.DataSource assign.
+ This fixes bug #52179.
+
2003-12-15 Alon Gazit <along@mainsoft.com>
* DataGrid.cs: Change the implementation of the property
BackImageUrl. The current implementation has no influence
ds = new DataSourceInternal (itemCount);
}
- if (headerTemplate != null)
- CreateItem (-1, ListItemType.Header, useDataSource, null);
-
int index = 0;
- if (ds != null) {
+ if (ds != null) {\r
+ if (headerTemplate != null)
+ CreateItem (-1, ListItemType.Header, useDataSource, null);
+
bool even = true;
foreach (object item in ds){
if (separatorTemplate != null && index > 0)
itemsArrayList.Add (repeaterItem);
index++;
even = !even;
- }
+ }\r
+ \r
+ if (footerTemplate != null)
+ CreateItem (-1, ListItemType.Footer, useDataSource, null);
}
- if (footerTemplate != null)
- CreateItem (-1, ListItemType.Footer, useDataSource, null);
-
if (useDataSource)
ViewState [ITEMCOUNT] = (ds == null) ? -1 : index;
}