Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetNameBoxControl.ReadOnly Property

Gets or sets a value indicating whether the SpreadsheetNameBoxControl‘s value can be changed by end-users.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v24.2.dll

NuGet Package: DevExpress.Win.Spreadsheet

#Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean ReadOnly { get; set; }

#Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumeration value specifying the accessibility of the SpreadsheetNameBoxControl control.

The default is DefaultBoolean.Default.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

#Remarks

By default, the DefaultBoolean.Default value is treated as False for the SpreadsheetNameBoxControl, so that end-users can modify values of the name box. To prevent end-users from editing values in the SpreadsheetNameBoxControl, set the ReadOnly property to DefaultBoolean.True.

spreadsheetNameBoxControl1.ReadOnly = DevExpress.Utils.DefaultBoolean.True;

Note

Changing the ReadOnly property value raises the SpreadsheetNameBoxControl.ReadOnlyChanged event.

See Also