System.Windows.Forms.DataGridTableStyle.ReadOnly Property

Gets or sets a value indicating whether columns can be edited.

Syntax

[System.ComponentModel.DefaultValue(false)]
public virtual bool ReadOnly { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can also specify whether individual columns within the table are editable by setting the System.Windows.Forms.DataGridColumnStyle class's DataGridColumnStyle.ReadOnly property to an appropriate value, true or false.

Alternatively, to ensure that the data is not edited, you can set the System.Data.DataColumn class's System.Data.DataColumn.ReadOnly property to true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0