请参考以下代码:
- AutoCompleteStringCollection acsc = new AutoCompleteStringCollection();
- acsc.AddRange(new string[]{"One", "Two", "Three", "Four"});
- FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
- cb.Items = new string[]{"One", "Two", "Three", "Four"};
- cb.Editable = true;
- cb.AutoCompleteCustomSource = acsc;
- cb.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
- cb.AutoCompleteSource = AutoCompleteSource.CustomSource;
复制代码 |