回复 1楼liuyinlong的帖子
使用 AcceptsArrowKeys 控制键盘动作,测试代码如下:
- 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[0].Cells[2, 2].CellType = cmbocell;
复制代码 |