Parameters
- index
- The zero-based index at which to insert item.
- item
- The cell to insert. Cannot be a null reference (Nothing in Visual Basic).
Exception | Description |
---|---|
InvalidOperationException | An attempt was made to insert a cell when the row is contained by a DataGridControl. |
ArgumentNullException | item is a null reference (Nothing in Visual Basic). |
Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
CellCollection Class
CellCollection Members
Base Implementation in InsertItem
RemoveItem Method
MoveItem Method
SetItem Method