ListItemCollection.Insert Method (Int32, ListItem)
.NET Framework 3.0
Inserts the specified ListItem in the collection at the specified index location.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void Insert ( int index, ListItem item )
public function Insert ( index : int, item : ListItem )
Not applicable.
Parameters
- index
The location in the collection to insert the ListItem.
- item
The ListItem to add to the collection.
Use the Insert method to add a ListItem to the collection at the index specified by the index parameter. This implementation of the method takes the ListItem specified by the item parameter and inserts it in the collection at the specified index.
Community Additions
ADD
Show: