System.Web.UI.WebControls.BoundField.ReadOnly Property

Gets or sets a value indicating whether the value of the field can be modified in edit mode.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the BoundField.ReadOnly property to prevent the values displayed in a System.Web.UI.WebControls.BoundField object from being modified. When a data-bound control is in edit mode, fields that are read-only are displayed as plain text, without any editing controls.

Note:

The BoundField.ReadOnly property applies only to edit mode. To prevent fields from showing up in insert mode, use the DataControlField.InsertVisible property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0