回复 4楼流水止于天的帖子
那只能抓取 CheckBox 的点击事件,再充值单元格方法:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.CheckBoxCellType ckbxcell = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
- ckbxcell.TextAlign = FarPoint.Win.ButtonTextAlign.TextRightPictLeft;
- ckbxcell.Caption = "Item Selected?";
- fpSpread1.Sheets[0].Cells[2, 2].CellType = ckbxcell;
- ckbxcell.EditorValueChanged += new EventHandler(ckbxcell_EditorValueChanged);
- }
- void ckbxcell_EditorValueChanged(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].ActiveCell.Value = false;
- }
复制代码
弊端是可以看到选中状态。 |