GrapeCity MultiRow Windows Forms Documentation
RemoveAt Method (RowCollection)


The position of the row to remove.
Removes the specified row.
Syntax
<FeatureAttribute(Name="RowCollection", Version="v5.0")>
Public Overridable Sub RemoveAt( _
   ByVal rowIndex As Integer _
) 
Dim instance As RowCollection
Dim rowIndex As Integer
 
instance.RemoveAt(rowIndex)
[Feature(Name="RowCollection", Version="v5.0")]
public virtual void RemoveAt( 
   int rowIndex
)

Parameters

rowIndex
The position of the row to remove.
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 minus 1 and the AllowUserToAddRows property of the GcMultiRow control is set to true.

-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.ArgumentOutOfRangeExceptionThe rowIndex is less than 0 or greater than the number of Rows in the collection minus 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.