GridColumn.IsReadOnly Property

Gets or sets whether end-users are allowed to change cell values in the column. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

[XtraSerializableProperty]
public bool IsReadOnly { get; set; }
<XtraSerializableProperty>
Public Property IsReadOnly As Boolean

Property Value

Type Description
Boolean

true, to prevent end-users from changing cell values in the column; otherwise, false.

End-users can switch the grid to edit mode by double-tapping the required cell or choosing Edit Cell in the context menu that appears when they touch and hold a data cell. If the IsReadOnly property of a grid column is set to true, both these methods are disabled for this column.

To prevent end-users from editing cell values in the whole grid, set the GridControl.AllowEditRows property to false.

See Also