This documentation is archived and is not being maintained.

RepeaterItem.DataItem Property

Gets or sets a data item associated with the RepeaterItem object in the Repeater control.

[Visual Basic]
Public Overridable Property DataItem As Object
[C#]
public virtual object DataItem {get; set;}
[C++]
public: __property virtual Object* get_DataItem();
public: __property virtual void set_DataItem(Object*);
[JScript]
public function get DataItem() : Object;
public function set DataItem(Object);

Property Value

A System.Object that represents a data item in the Repeater control.

Remarks

Use the DataItem property to specify or determine the properties of a data item associated with the RepeaterItem object in the Repeater control.

Note   This property only applies to data items in the Repeater control. The ItemType property must be set to ListItemType.Item, ListItemType.AlternatingItem, ListItemType.SelectedItem, or ListItemType.EditItem.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

RepeaterItem Class | RepeaterItem Members | System.Web.UI.WebControls Namespace | Repeater | System.Object

Show: