Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

ActionAttribute.SelectionDependencyType Property

Specifies a context for enabling the generated Action.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public MethodActionSelectionDependencyType SelectionDependencyType { get; set; }

#Property Value

Type Description
MethodActionSelectionDependencyType

A MethodActionSelectionDependencyType enumeration value identifying a context type.

Available values:

Name Description
RequireSingleObject

Specifies that the Action is enabled when a single object is selected in the current View. Set the ActionAttribute.Category property to “RecordEdit”, to display the Action in an additional cell for each object in the ASP.NET Web Forms application’s List Views.

RequireMultipleObjects

Specifies that the Action is enabled when one or more objects are selected in the current View.

#Remarks

Use this property to specify the availability context for the Action which will be generated from the Action attribute’s target method. By default, this property is set to MethodActionSelectionDependencyType.RequireMultipleObjects.

See Also