แก้ไข

แชร์ผ่าน


DynamicControl.ApplyFormatInEditMode Property

Definition

Gets or sets a value that indicates whether the formatting string specified by the DataFormatString property is applied to field values when the field is in edit mode.

public:
 property bool ApplyFormatInEditMode { bool get(); void set(bool value); };
public bool ApplyFormatInEditMode { get; set; }
member this.ApplyFormatInEditMode : bool with get, set
Public Property ApplyFormatInEditMode As Boolean

Property Value

true if the formatting string is applied; otherwise, false. The default is false.

Remarks

The DynamicControl control has different display modes that allow the user to read, edit, or insert a field. By default, the formatting string specified by the DataFormatString property is applied to a field value only when the DynamicControl 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

The DynamicControl control 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.

Applies to

See also