![]() ![]() | ||
A repeater is a data-bound list control that allows custom layout by repeating a specified template for each item displayed in the list. Repeaters are supported with the Repeater class, and here is the inheritance hierarchy for that class:
Object Control Repeater
You can find the notable public properties of Repeater objects in Table 23.8 and their notable events in Table 23.9. (This class has no non-inherited methods.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.
Property |
Means |
---|---|
AlternatingItemTemplate |
Gets/sets the template for alternating items. |
DataMember |
Gets/sets the specific table to bind to. |
DataSource |
Gets/sets the data source to bind to. |
FooterTemplate |
Gets/sets the template for the footer. |
HeaderTemplate |
Gets/sets the template for the header. |
Items |
Gets the items in the repeater. |
ItemTemplate |
Gets/sets the template for items. |
SeparatorTemplate |
Gets/sets the template for separators. |
Event |
Means |
---|---|
ItemCommand |
Occurs when any button is clicked. |
ItemCreated |
Occurs when an item is created. |
ItemDataBound |
Occurs when an item is data bound to the repeater. |
![]() ![]() | ||