Get or sets the default data-entry mode of the System.Web.UI.WebControls.DetailsView control.
Documentation for this section has not yet been entered.
Use the DetailsView.DefaultMode property to specify whether the System.Web.UI.WebControls.DetailsView control returns to edit, insert, or read-only mode after an edit or insert operation is performed. By default, the System.Web.UI.WebControls.DetailsView control returns to read-only mode; however, you can keep the System.Web.UI.WebControls.DetailsView control in edit or insert mode by setting this property to the appropriate value. The following table lists the different mode values.
DetailsViewMode.Edit |
The System.Web.UI.WebControls.DetailsView control is in edit mode, which allows the user to update the values of a record. |
DetailsViewMode.Insert |
The System.Web.UI.WebControls.DetailsView control is in insert mode, which allows the user to add a new record to the data source. |
DetailsViewMode.ReadOnly |
The System.Web.UI.WebControls.DetailsView control is in read-only mode, which is the normal display mode. |