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


The zero based starting index of the range of rows to remove.
The number of rows to remove.
Removes a range of rows.
Syntax
<FeatureAttribute(Name="RowCollection", Version="v5.0")>
Public Overloads Overridable Sub Remove( _
   ByVal rowIndex As Integer, _
   ByVal count As Integer _
) 
Dim instance As RowCollection
Dim rowIndex As Integer
Dim count As Integer
 
instance.Remove(rowIndex, count)
[Feature(Name="RowCollection", Version="v5.0")]
public virtual void Remove( 
   int rowIndex,
   int count
)

Parameters

rowIndex
The zero based starting index of the range of rows to remove.
count
The number of rows to remove.
Exceptions
ExceptionDescription
System.InvalidOperationException

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

-or-

The associated GcMultiRow control is bound to a System.ComponentModel.IBindingList implementation with System.ComponentModel.IBindingList.AllowRemove and System.ComponentModel.IBindingList.SupportsChangeNotification property values that are not both true.

System.ArgumentOutOfRangeException

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

-or-

The rowIndex and the count do not denote a valid range of Rows.

-or-

The count is less than 1 or greater than the number of Rows in the data source.

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.