GrapeCity MultiRow Windows Forms Documentation
Insert(Int32,Int32) Method


The position at which to insert the rows.
The number of rows to insert in the RowCollection.
Inserts the specified number of new rows at the specified index.
Syntax
<FeatureAttribute(Name="RowCollection", Version="v5.0")>
Public Overloads Overridable Sub Insert( _
   ByVal rowIndex As Integer, _
   ByVal count As Integer _
) 
Dim instance As RowCollection
Dim rowIndex As Integer
Dim count As Integer
 
instance.Insert(rowIndex, count)
[Feature(Name="RowCollection", Version="v5.0")]
public virtual void Insert( 
   int rowIndex,
   int count
)

Parameters

rowIndex
The position at which to insert the rows.
count
The number of rows to insert in the RowCollection.
Exceptions
ExceptionDescription
System.InvalidOperationException

This method is accessed when Template is a null reference (Nothing in Visual Basic).

-or-

The rowIndex is equal to the number of Rows in the collection and the AllowUserToAddRows property of the GcMultiRow control is set to true.

-or-

The DataSource property of the GcMultiRow control is not a null reference (Nothing in Visual Basic).

System.ArgumentOutOfRangeException

The rowIndex is less than 0 or greater than the number of Rows in the collection.

-or-

The count is less than 1.

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

RowCollection Class
RowCollection Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.