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.2.dll

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