GrapeCity.Win.MultiRow Namespace > ComboBoxCell Class : AutoCompleteSource Property |
<DefaultValueAttribute()> <SRDescriptionAttribute("Indicates the source of complete strings used for automatic completion.")> <SRCategoryAttribute("Behavior")> Public Property AutoCompleteSource As AutoCompleteSource
Dim instance As ComboBoxCell Dim value As AutoCompleteSource instance.AutoCompleteSource = value value = instance.AutoCompleteSource
[DefaultValue()] [SRDescription("Indicates the source of complete strings used for automatic completion.")] [SRCategory("Behavior")] public AutoCompleteSource AutoCompleteSource {get; set;}
One of the System.Windows.Forms.AutoCompleteSource values. The default is System.Windows.Forms.AutoCompleteSource.None.
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | The assigned value is not one of the System.Windows.Forms.AutoCompleteSource values. |
ComboBoxCell CreateAutoCompleteComboBoxCell() { ComboBoxCell comboBoxCell = new ComboBoxCell(); comboBoxCell.DropDownStyle = MultiRowComboBoxStyle.DropDown; comboBoxCell.AutoCompleteMode = AutoCompleteMode.SuggestAppend; comboBoxCell.AutoCompleteSource = AutoCompleteSource.CustomSource; string[] customSourceItems = new string[] { "aaa", "bbb", "ccc", "ddd" }; comboBoxCell.AutoCompleteCustomSource.AddRange(customSourceItems); comboBoxCell.Items.AddRange("(none)", "aaa", "bbb", "ccc", "ddd"); return comboBoxCell; }
Private Function CreateAutoCompleteComboBoxCell() As ComboBoxCell Dim comboBoxCell As New ComboBoxCell() comboBoxCell.DropDownStyle = MultiRowComboBoxStyle.DropDown comboBoxCell.AutoCompleteMode = AutoCompleteMode.SuggestAppend comboBoxCell.AutoCompleteSource = AutoCompleteSource.CustomSource Dim customSourceItems As String() = New String() {"aaa", "bbb", "ccc", "ddd"} comboBoxCell.AutoCompleteCustomSource.AddRange(customSourceItems) comboBoxCell.Items.AddRange("(none)", "aaa", "bbb", "ccc", "ddd") Return comboBoxCell End Function
Target Platforms: 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