This documentation is archived and is not being maintained.

BindingList<T>.InsertItem Method

Inserts the specified item in the list at the specified index.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

protected override void InsertItem(
	int index,
	T item


Type: System.Int32
The zero-based index where the item is to be inserted.
Type: T
The item to insert in the list.

InsertItem performs the following operations:

  • Calls EndNew to commit any uncommitted items added through the AddingNew event.

  • Inserts the item at the specified index

  • Raises a ListChanged event of type ItemAdded indicating the index of the item that was inserted.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.