System.Web.UI.WebControls.DataList.Items Property

Gets a collection of System.Web.UI.WebControls.DataListItem objects representing the individual items within the control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public virtual DataListItemCollection Items { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DataList.Items collection to programmatically control the items in the System.Web.UI.WebControls.DataList control. The DataList.Items collection does not provide any methods to add or remove items to the collection. However, you can control the contents of an item by providing a handler for the DataList.ItemCreated event.

Note:

Only items bound to the data source are contained in the DataList.Items collection. The header, footer, and separator are not included in the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0