CalendarComboBoxCellType CreateAutoCompleteComboBoxCell()
{
CalendarComboBoxCellType comboBoxCell = new CalendarComboBoxCellType();
comboBoxCell.DropDownStyle = CalendarGridComboBoxStyle.DropDown;
comboBoxCell.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
comboBoxCell.AutoCompleteSource = AutoCompleteSource.CustomSource;
string[] customSourceItems = new string[] { "aaa", "bbb", "ccc", "ddd" };
comboBoxCell.AutoCompleteCustomSource.AddRange(customSourceItems);
comboBoxCell.Items.Add("(none)");
comboBoxCell.Items.Add("aaa");
comboBoxCell.Items.Add("bbb");
comboBoxCell.Items.Add("ccc");
comboBoxCell.Items.Add("ddd");
return comboBoxCell;
}
Private Function CreateAutoCompleteComboBoxCell() As CalendarComboBoxCellType
Dim comboBoxCell As New CalendarComboBoxCellType()
comboBoxCell.DropDownStyle = CalendarGridComboBoxStyle.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.Add("(none)")
comboBoxCell.Items.Add("aaa")
comboBoxCell.Items.Add("bbb")
comboBoxCell.Items.Add("ccc")
comboBoxCell.Items.Add("ddd")
Return comboBoxCell
End Function