A newer version of this page is available. Switch to the current version.

ChangeVariantController.ChangeVariantAction Property

Gets a SingleChoiceAction used to change View variants.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

Assembly: DevExpress.ExpressApp.ViewVariantsModule.v18.2.dll


public SingleChoiceAction ChangeVariantAction { get; }
Public ReadOnly Property ChangeVariantAction As SingleChoiceAction

Property Value

Type Description

A SingleChoiceAction object representing the Action used to change View variants.


ChangeVariantAction represents the SingleChoiceAction Action that allows end-users to select a View variant to be displayed within the current Window (Frame). This Action has the View caption and the ChangeVariant ID.

In a Windows Forms application:


In an ASP.NET application:


Predefined items displayed in the drop-down list are specified by the Views | View | Variants node of the Application Model. The action is visible if there are two or more variants available for a current varied View. This action can be customized via the ActionDesign | Actions | View node.

To ascertain why the ChangeVariant Action is currently deactivated or disabled, use the DiagnosticInfo Action. If you need to change the Action's "active" or "enabled" state in code, use its ActionBase.Active or ActionBase.Enabled property, respectively.

See Also