The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

View.CanChangeCurrentObject() Method

Determines whether a View's current object can be changed.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public bool CanChangeCurrentObject()
Public Function CanChangeCurrentObject As Boolean
public bool CanChangeCurrentObject()
Public Function CanChangeCurrentObject As Boolean
public bool CanChangeCurrentObject()
Public Function CanChangeCurrentObject As Boolean

Returns

Type Description
Boolean

true if the current object can be changed; otherwise, false.

Returns

Type Description
Boolean

true if the current object can be changed; otherwise, false.

Returns

Type Description
Boolean

true if the current object can be changed; otherwise, false.

Remarks

This method raises the View.QueryCanChangeCurrentObject event and returns the value opposite to the event handler's Cancel parameter value.

Handle the QueryCanChangeCurrentObject event to prohibit changing the current object by setting the event handler's Cancel parameter to true. By default, this parameter is set to false.

See Also