Command.CanExecute() Method
In This Article
Determines whether the command can execute in its current state.
Namespace: DevExpress.Utils.Commands
Assembly: DevExpress.Data.v14.2.dll
#Declaration
#Returns
Type | Description |
---|---|
Boolean | true if the command can execute; otherwise, false. |
#Remarks
UI controls that support commands (such as Bar Items) disable the control if the CanExecute is false. A command will only execute if the CanExecute is true. In case you want to execute an action if the command cannot be executed, use the Command.ForceExecute method, instead of Command.Execute.
See Also