Skip to main content
.NET 6.0+

ListEditor.SelectionType Property

Returns the selection type supported by the current List Editor.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public abstract SelectionType SelectionType { get; }

Property Value

Type Description
SelectionType

A SelectionType enumeration value that represents the selection type supported by the current List Editor.

Remarks

This property is used by XAF to determine what Actions to enable for a List View. Each Action has the ActionBase.SelectionDependencyType property that specifies whether an Action’s availability depends on the current selection. XAF determines what actions to enable for a List View by comparing the value of the Action’s SelectionDependencyType property with the List Editor’s SelectionType property value.

For example, if an Action requires a selected object and the current List Editor does not support selection, the Action will not be available.

When deriving from the ListEditor class, implement this property, so that it returns the correct SelectionType enumeration value.

See Also