Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DynamicControl.Mode Property

Gets or sets the rendering mode.

Namespace:  System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)
public DataBoundControlMode Mode { get; set; }
<asp:DynamicControl Mode="DataBoundControlMode" />

Property Value

Type: System.Web.UI.WebControls.DataBoundControlMode
One of the enumeration values that specifies the rendering mode for the control. The default is DataBoundControlMode.ReadOnly.

Implements

IFieldTemplateHost.Mode

Use the Mode property to specify which rendering mode to use to display the DynamicControl control. The following table shows the different modes.

Mode

Description

ReadOnly

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.

Edit

for edit mode. This enables users to update the values of an existing record. It is used in the EditItemTemplate template.

Insert

for insert mode. This enables users to enter values for a new record. It is used in the InsertItemTemplate template.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.