corelibraries-devexpress-dot-data-dot-selectionchangedeventargs.md
Gets an action which describes how the collection has been changed.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public CollectionChangeAction Action { get; }
Public ReadOnly Property Action As CollectionChangeAction
| Type | Description |
|---|---|
| CollectionChangeAction |
A CollectionChangeAction enumeration value which specifies how the collection has been changed.
|
This property can have one of the following values:
| Action | Property 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
}
if (e.Action == CollectionChangeAction.Refresh)
{
winforms-grid-select-detail-rows-when-selecting-master-row/VB/MasterDetailSelectionHelper.vb#L33
End If
If e.Action = CollectionChangeAction.Refresh Then
For Each view As BaseView In _GridView.GridControl.Views
See Also
SelectionChangedEventArgs Class