DynamicControl.Mode Property
.NET Framework (current version)
Gets or sets the rendering mode.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
abstract Mode : DataBoundControlMode with get, set override Mode : DataBoundControlMode with get, set
Property Value
Type: System.Web.UI.WebControls.DataBoundControlModeOne of the enumeration values that specifies the rendering mode for the control. The default is DataBoundControlMode.ReadOnly.
Implements
IFieldTemplateHost.ModeUse the Mode property to specify which rendering mode to use to display the DynamicControl control. The following table shows the different modes.
Mode | Description |
|---|---|
for display mode. This prevents the user from modifying the values of a record or a data field. It can be used in any of the templates. This is the default value. | |
for edit mode. This enables users to update the values of an existing record. It is used in the EditItemTemplate template. | |
for insert mode. This enables users to enter values for a new record. It is used in the InsertItemTemplate template. |
.NET Framework
Available since 3.5
Available since 3.5
Show: