GrapeCity MultiRow Windows Forms Documentation
Add Method (CellCollection)


The object to add to the CellCollection.
Adds an item to the CellCollection.
Syntax
<TakeCellFreezeAttribute()>
Public Sub Add( _
   ByVal item As Cell _
) 
Dim instance As CellCollection
Dim item As Cell
 
instance.Add(item)
[TakeCellFreeze()]
public void Add( 
   Cell item
)

Parameters

item
The object to add to the CellCollection.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe item is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionThe item has 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.