Skip to main content

VGridRows.AddRange(BaseRow[]) Method

Adds an array of row objects to the rows collection.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

public virtual void AddRange(
    BaseRow[] rows
)

Parameters

Name Type Description
rows BaseRow[]

An array of BaseRow derived objects to be added to the collection of rows.

Remarks

This method gets an array of row objects each of which is represented by an instance of the BaseRow class descendant. You can use the AddRange method to quickly add a group of rows to the rows collection represented by a VGridRows object instead of manually adding each row to the collection using the VGridRows.Add method.

When using this method to add rows to the collection, you do not need to call the VGridControlBase.BeginUpdate and VGridControlBase.EndUpdate methods to optimize performance.

To remove the previously added row, use its Dispose method or the collection’s VGridRows.Remove method. Use the Clear() method if you want to remove all rows from the collection.

See Also