Skip to main content

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.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


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.


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.

See Also