RepeaterItemCollection Constructor (ArrayList)
.NET Framework (current version)
Initializes a new instance of the RepeaterItemCollection class.
Assembly: System.Web (in System.Web.dll)
Parameters
- items
-
Type:
System.Collections.ArrayList
A System.Collections.ArrayList that contains the items with which to initialize the collection.
Use this constructor to create and initialize a new instance of the RepeaterItemCollection class.
Sub Page_Load(Sender As Object, e As EventArgs) If Not IsPostBack Then Dim myDataSource As New ArrayList() myDataSource.Add(New PositionData("Item 1", "$6.00")) myDataSource.Add(New PositionData("Item 2", "$7.48")) myDataSource.Add(New PositionData("Item 3", "$9.96")) ' Initialize the RepeaterItemCollection using the ArrayList as the data source. Dim myCollection As New RepeaterItemCollection(myDataSource) myRepeater.DataSource = myCollection myRepeater.DataBind() End If End Sub 'Page_Load
.NET Framework
Available since 1.1
Available since 1.1
Show: