Skip to main content
Tag

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.v14.2.Core.dll

#Declaration

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

#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 from being changed in code, using the GridControl.SetCellValue method.

To learn more, see Data Editing Overview and Editing in Code.

See Also