GrapeCity MultiRow Windows Forms Documentation
Insert Method (CellCollection)


The zero-based index at which to place the item.
The Cell to insert.
Inserts a cell into the collection at the specified index.
Syntax
<TakeCellFreezeAttribute()>
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal item As Cell _
) 
Dim instance As CellCollection
Dim index As Integer
Dim item As Cell
 
instance.Insert(index, item)
[TakeCellFreeze()]
public void Insert( 
   int index,
   Cell item
)

Parameters

index
The zero-based index at which to place the item.
item
The Cell to insert.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThe index is less than 0 or greater than the number of the Cells in the collection.
System.ArgumentNullExceptionThe item is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionThe item had been added into another Section.
System.InvalidOperationException

The method is executed at run time.

-or-

The item is a ColumnHeaderCell but the owner Section is Row.

-or-

The item is a RowHeaderCell but the owner Section is ColumnHeaderSection.

-or-

The item is a RowHeaderCell or ColumnHeaderCell but the owner Section is ColumnFooterSection.

System.NotSupportedExceptionThe CellCollection is read-only.
Requirements

Target Platforms: 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

See Also

Reference

CellCollection Class
CellCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.