System.Web.UI.WebControls Namespace
Represents an individual item in a Repeater control.
A RepeaterItem object represents a single item or row in the Repeater control.
The Repeater control stores its contents in basically two collections. These collections are exposed via the Repeater.Controls and Repeater.Items properties. Both properties return a collection of RepeaterItem objects that represent the individual items in the Repeater, though the contents of the collections differ slightly.
Repeater.Controls returns a ControlCollection object that contains every item in the Repeater that is treated as a control, including the header and footer, while Repeater.Items returns a RepeaterItemCollection that contains only the data-bound items in the control.
For example, in a Repeater bound to a data source with three records, Repeater.Controls will return a collection consisting of five RepeaterItem objects: one each for the header and footer, and one for each record ( or row of data ) in the data source. Repeater.Items on the other hand will return a collection consisting of three RepeaterItem objects, each corresponding to a record ( or row of data ) in the data source.
You can use the RepeaterItem object to gain access to the properties of each item or control in the Repeater, as well as the properties of the child controls associated with each item or control.
For examples illustrating use of this control, see the individual member types of this class.
Repeater.Controls Repeater.Items