Version

Value Property (UltraComboEditor)

Gets/sets the control's current value. Available only at runtime.
Syntax
'Declaration
 
Public Overrides Property Value As Object
public override object Value {get; set;}
Remarks

The Value property corresponds to the DataValue property of the control's SelectedItem.

When the control's DropDownStyle property is set to DropDownList, and the SelectedItem is null (Nothing in VB), the Value property will also return null.

When the control's DropDownStyle property is set to DropDown, and the SelectedItem is null (Nothing in VB), the Value property will return the value of the control's Text property.

When the control's DropDownStyle property is set to DropDownList, and the Value property is set to a value that does not match the DataValue of any of the items in the list, the SelectedItem becomes null. This is analogous to the case where the control's Text property is set to a value that does not match the DisplayTextof any of the items in the list.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also