Skip to main content
A newer version of this page is available. .

ASPxSpreadsheetBehaviorSettings.SwitchViewModes Property

Gets or sets whether switching between Reading and Editing view modes using the ASPxClientSpreadsheet.SetViewMode is disabled.

Namespace: DevExpress.Web.ASPxSpreadsheet

Assembly: DevExpress.Web.ASPxSpreadsheet.v20.2.dll

NuGet Package: DevExpress.Web.Office

Declaration

[DefaultValue(DocumentCapability.Default)]
public DocumentCapability SwitchViewModes { get; set; }

Property Value

Type Default Description
DocumentCapability **Default**

A DocumentCapability enumeration value specifying the document’s capability to perform an operation.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to SwitchViewModes
ASP.NET Controls and MVC Extensions ASPxSpreadsheetSettings
.Behavior .SwitchViewModes
ASP.NET MVC Extensions MVCxSpreadsheetSettings
.Behavior .SwitchViewModes

Remarks

The DocumentCapability.Default value for the SwitchViewModes property is equal to DocumentCapability.Enabled, so that the ASPxClientSpreadsheet.SetViewMode method is in effect for the Spreadsheet control.

See Also