RepeaterCommandEventArgs.Item Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the RepeaterItem associated with the event.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public RepeaterItem Item { get; }

Property Value

Type: System.Web.UI.WebControls.RepeaterItem

The RepeaterItem associated with the event.

Use this property to access the properties of the RepeaterItem associated with this event.

The following example demonstrates how to determine the index number from the Item property.

void R1_ItemCommand(Object Sender, RepeaterCommandEventArgs e) {        
    Label2.Text = "The index of the item is " + e.Item.ItemIndex.ToString();

.NET Framework
Available since 1.1
Return to top