Skip to main content

GroupSummarySortInfoCollection.ClearAndAddRange(GroupSummarySortInfo[]) Method

Clears the collection and adds an array of GroupSummarySortInfo objects to it.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public void ClearAndAddRange(
    GroupSummarySortInfo[] sortInfos
)

Parameters

Name Type Description
sortInfos GroupSummarySortInfo[]

An array of GroupSummarySortInfo objects to add to the collection.

Remarks

The ClearAndAddRange method removes all the GroupSummarySortInfo objects from the collection. It then populates the collection with the items in the specified array. This method uses the GroupSummarySortInfoCollection.BeginUpdate and GroupSummarySortInfoCollection.EndUpdate methods to prevent the collection from being updated until all the existing items have been removed and the new ones added.

See Also