GrapeCity.Win.MultiRow Namespace > CellCollection Class : Insert Method |
Dim instance As CellCollection Dim index As Integer Dim item As Cell instance.Insert(index, item)
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The index is less than 0 or greater than the number of the Cells in the collection. |
System.ArgumentNullException | The item is a null reference (Nothing in Visual Basic). |
System.ArgumentException | The 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.NotSupportedException | The CellCollection is read-only. |
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