ListControl.FormattingEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.
public:
property bool FormattingEnabled { bool get(); void set(bool value); };
public bool FormattingEnabled { get; set; }
member this.FormattingEnabled : bool with get, set
Public Property FormattingEnabled As Boolean
Property Value
true
if formatting of the DisplayMember property is enabled; otherwise, false
. The default is false
.
Remarks
Setting the FormattingEnabled property to true
causes the Format event to be raised for each visible member of the ListControl.
SelectedIndex, SelectedValue, and FormattingEnabled are related as follows:
If FormattingEnabled is
false
, SelectedIndex will not be set to -1 when SelectedValue is blank.If FormattingEnabled is
true
, SelectedIndex will be set to -1 when SelectedValue is blank.