GrapeCity MultiRow Windows Forms Documentation
AddCopies Method


The index of the row on which to base the new rows.
The number of rows to add to the collection.
Adds the specified number of rows to the collection based on the row at the specified index.
Syntax
<FeatureAttribute(Name="RowCollection", Version="v5.0")>
Public Overridable Function AddCopies( _
   ByVal indexSource As Integer, _
   ByVal count As Integer _
) As Integer
Dim instance As RowCollection
Dim indexSource As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.AddCopies(indexSource, count)
[Feature(Name="RowCollection", Version="v5.0")]
public virtual int AddCopies( 
   int indexSource,
   int count
)

Parameters

indexSource
The index of the row on which to base the new rows.
count
The number of rows to add to the collection.

Return Value

A System.Int32 that indicates the index of the last row that was added.
Exceptions
ExceptionDescription
System.InvalidOperationException

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

-or-

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

System.ArgumentOutOfRangeException

The indexSource is less than 0 or greater than the number of Rows in the collection minus 1.

-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

 

 


Copyright © GrapeCity, inc. All rights reserved.