asp.net.ph

BoundField.ApplyFormatInEditMode Property

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.

Syntax


Inline <asp:boundfield applyformatineditmode [ = true | false ] ... >
Script BoundField.ApplyFormatInEditMode [ = true | false ]

Property Value

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.

Remarks

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.

See Also

BoundField Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph