Version

DropDownStyle Property (UltraComboEditor)

Gets/sets a value that determines whether the text portion of the control is editable.
Syntax
'Declaration
 
Public Overridable Property DropDownStyle As Infragistics.Win.DropDownStyle
public virtual Infragistics.Win.DropDownStyle DropDownStyle {get; set;}
Remarks

The DropDownStyle property controls the interface that is presented to the user. When set to DropDown, the text portion is editable, and the control's value can be set to any string value.

When set to DropDownList, the control's value must correspond to an item in the dropdown list.

Note: The value of the DropDownStyle property also influences certain aspects of the keyboard behavior. For example, when the DropDownStyle property is DropDownList, pressing an alpha-numeric key results in the first item whose text begins with that character becoming selected.

Note: The control also exposes an AutoComplete property, which is only applicable when the DropDownStyle property is set to DropDown.

Example
This example uses the control's DropDownStyle property to disallow typing values into the edit portion, and sets the DropDownButtonDisplayStyle so that the dropdown button does not appear.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub SetupDropDownStyles()

        '	Set the DropDownStyle to DropDownList so the control's
        '	value is restricted to items that appear in the list portion
        Me.UltraComboEditor1.DropDownStyle = DropDownStyle.DropDownList

        '	Set the DropDownButtonDisplayStyle proeprty to Never, so the dropdown
        '	button does not appear. Note that the dropdown list can still be displayed
        '	by pressing the F4 key
        Me.UltraComboEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.Never

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;

		private void SetupDropDownStyles()
		{
			//	Set the DropDownStyle to DropDownList so the control's
			//	value is restricted to items that appear in the list portion
			this.ultraComboEditor1.DropDownStyle = DropDownStyle.DropDownList;

			//	Set the DropDownButtonDisplayStyle proeprty to Never, so the dropdown
			//	button does not appear. Note that the dropdown list can still be displayed
			//	by pressing the F4 key
			this.ultraComboEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.Never;

		}
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