DynamicControl.Mode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the rendering mode.
public:
property System::Web::UI::WebControls::DataBoundControlMode Mode { System::Web::UI::WebControls::DataBoundControlMode get(); void set(System::Web::UI::WebControls::DataBoundControlMode value); };
public System.Web.UI.WebControls.DataBoundControlMode Mode { get; set; }
member this.Mode : System.Web.UI.WebControls.DataBoundControlMode with get, set
Public Property Mode As DataBoundControlMode
Property Value
One of the enumeration values that specifies the rendering mode for the control. The default is ReadOnly.
Remarks
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. |
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.