回复 5楼刘君的帖子
使用Editable属性,设置你是否可以在组合框中的可编辑区域键入数据。
代码参考:
- FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
- cmbocell.Items = (new String[] {"January", "February", "March", "April", "May", "June"});
- cmbocell.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows;
- cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter;
- cmbocell.Editable = true;
- cmbocell.ListAlignment = FarPoint.Win.ListAlignment.Left;
- cmbocell.ListOffset = 20;
- cmbocell.ListWidth = 0;
- cmbocell.MaxDrop = 4;
- fpSpread1.Sheets[1].Cells[2,2].CellType = cmbocell;
复制代码 |