Tag
A newer version of this page is available. Switch to the current version.

ColumnBase.ReadOnly Property

Gets or sets whether the column's values cannot be changed by an end-user. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll

Declaration

[DefaultValue(false)]
public bool ReadOnly { get; set; }
<DefaultValue(False)>
Public Property ReadOnly As Boolean

Property Value

Type Default Description
Boolean

false

true to prevent an end-user from changing the column's values; otherwise, false.

Remarks

If the column's ReadOnly property is set to true, its cell values cannot be modified by end-users. In this instance, cell editors can be invoked, but end-users can only select and copy their values. However, setting this property to true doesn't prevent cell values to be changed in code using the GridControl.SetCellValue method.

To learn more, see Data Editing and Validation and Modify Cell Values.

See Also