System.Web.UI.WebControls (system.web.dll) | class |
This class represents an individual item in the Repeater control. You can access a RepeaterItem through the Repeater.Items collection or from a Repeater event. RepeaterItem inherits most of its properties from System.Web.UI.Control. In addition, it provides an ItemIndex that gives its index in the Repeater.Items collection, an ItemType property that identifies what type of item this is (a header, footer, alternating row, etc.), and a DataItem property that returns the corresponding data item (such as a System.Data.DataRowView instance). public class RepeaterItem : System.Web.UI.Control, System.Web.UI.INamingContainer { // Public Constructors public RepeaterItem(int itemIndex, ListItemType itemType); // Public Instance Properties public virtual object DataItem{set; get; } public virtual int ItemIndex{get; } public virtual ListItemType ItemType{get; } // Protected Instance Methods protected override bool OnBubbleEvent(object source, EventArgs e);// overrides System.Web.UI.Control } Hierarchy System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) RepeaterItem(System.Web.UI.INamingContainer) Returned By Repeater.CreateItem( ), RepeaterCommandEventArgs.Item, RepeaterItemCollection.this, RepeaterItemEventArgs.Item Passed To Repeater.InitializeItem( ), RepeaterCommandEventArgs.RepeaterCommandEventArgs( ), RepeaterItemEventArgs.RepeaterItemEventArgs( ) |