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

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


public virtual DataListItemCollection Items { get; }


Documentation for this section has not yet been entered.


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.


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.


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