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

MultiEditorRowPropertiesCollection.Clear() Method

In This Article

Removes all row items from the MultiEditorRow.PropertiesCollection.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public void Clear()

#Remarks

You can use the Clear method to empty the row item collection represented by the MultiEditorRow.PropertiesCollection property. Each row item in the collection represents an individual row properties object of a multi-editor row. When you remove items from the collection, all information about deleted row items is lost.

Note:   The collection’s MultiEditorRowPropertiesCollection.Count property is automatically set to 0 after this method is used.

Note that the VGridControlBase.RowChanged event occurs only once after all row items are removed from the collection. The event parameter’s RowChangedEventArgs.ChangeType property representing the type of row processing performed returns the RowChangeTypeEnum.PropertiesCleared value.

To remove a single row item from the collection, use the MultiEditorRowPropertiesCollection.Remove or the MultiEditorRowPropertiesCollection.RemoveAt method.

To add new row item objects to the collection, use the MultiEditorRowPropertiesCollection.Add method. Existing row items can be added to the collection with the help of the MultiEditorRowPropertiesCollection.AddRange method.

See Also