Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridRows.AddRange(BaseRow[]) Method

Adds an array of row objects to the rows collection.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v24.2.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