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

ASPxEditBase.ReadOnly Property

Gets or sets a value indicating whether an end-user can change the editor’s contents at runtime.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public virtual bool ReadOnly { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if an end-user cannot change the editor’s contents; otherwise, false.

Remarks

Use the ReadOnly property to specify whether the contents of an editor can be modified by an end-user at runtime. For example, setting the ReadOnly property of an ASPxTextBox editor to true, prevents the text displayed within that editor from being changed by an end-user.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ReadOnly property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also