ListControl::FormattingEnabled Property
.NET Framework (current version)
Gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue if formatting of the DisplayMember property is enabled; otherwise, false. The default is false.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: