asp.net.ph

RepeaterItem Class

System.Web.UI.WebControls Namespace


Represents an individual item in a Repeater control.

RepeaterItem Class Members

Collapse   Constructors

Visibility Constructor Parameters
public RepeaterItem ( Int32 itemIndex , ListItemType itemType )

Collapse   Properties

Visibility Name Value Type Accessibility
public DataItem Object [ Get , Set ]
public ItemIndex Int32 [ Get ]
public ItemType ListItemType [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
protected OnBubbleEvent ( Object source , EventArgs e ) Boolean

Remarks

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.

See Also

Repeater.Controls   Repeater.Items Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph