Back to Devexpress

SelectionChangedEventArgs.Action Property

corelibraries-devexpress-dot-data-dot-selectionchangedeventargs.md

latest2.9 KB
Original Source

SelectionChangedEventArgs.Action Property

Gets an action which describes how the collection has been changed.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public CollectionChangeAction Action { get; }
vb
Public ReadOnly Property Action As CollectionChangeAction

Property Value

TypeDescription
CollectionChangeAction

A CollectionChangeAction enumeration value which specifies how the collection has been changed.

|

Remarks

This property can have one of the following values:

ActionProperty Value
An element was added to the collection.CollectionChangeAction.Add
An element was removed from the collection.CollectionChangeAction.Remove
The collection was completely changed.CollectionChangeAction.Refresh

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Action property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-select-detail-rows-when-selecting-master-row/CS/MasterDetailSelectionHelper.cs#L39

csharp
}
if (e.Action == CollectionChangeAction.Refresh)
{

winforms-grid-select-detail-rows-when-selecting-master-row/VB/MasterDetailSelectionHelper.vb#L33

vb
End If
If e.Action = CollectionChangeAction.Refresh Then
    For Each view As BaseView In _GridView.GridControl.Views

See Also

SelectionChangedEventArgs Class

SelectionChangedEventArgs Members

DevExpress.Data Namespace