System.Web.UI.WebControls Namespace BoundField Class
Sets or retrieves a value specifying whether the formatting string specified by the DataFormatString property is applied to field values when the parent control of the BoundField object is in edit mode.
Inline |
<asp:boundfield applyformatineditmode [ = true | false ] ... > |
Script |
BoundField.ApplyFormatInEditMode [ = true | false ] |
This property accepts or returns only a boolean value: true to apply the formatting string to field values in edit mode; otherwise false. Default value is false.
Data-bound controls ( such as the DetailsView and FormView ) 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.
Use the ApplyFormatInEditMode property to specify whether the formatting string specified by the DataFormatString property is applied when the parent control of the BoundField object is in edit mode.
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.
BoundField Members