BoundField.ApplyFormatInEditMode Property
.NET Framework 3.0
Gets or sets a value indicating whether the formatting string specified by the DataFormatString property is applied to field values when the data-bound control that contains the BoundField object is in edit mode.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_ApplyFormatInEditMode () /** @property */ public void set_ApplyFormatInEditMode (boolean value)
public function get ApplyFormatInEditMode () : boolean public function set ApplyFormatInEditMode (value : boolean)
Not applicable.
Property Value
true to apply the formatting string to field values in edit mode; otherwise, false. The default is false.Data-bound controls (such as DetailsView, FormView, and GridView) have different display modes that allow the user to read, edit, or insert records. By default, the formatting string specified by the DataFormatString property is applied to field values only when the data-bound control is in read-only mode. To apply the formatting string to values displayed while the data-bound control is in edit mode, set the ApplyFormatInEditMode property to true.
Note: |
|---|
| A BoundField object does not automatically remove the formatting when the field is updated in the data source. If you do not want the formatting as part of the value stored, you will need to remove the formatting programmatically. |
Community Additions
ADD
Show:
Note: