楼主你好,
不好意思,我并没有重现你的问题,请提供你的代码片段,这是我的实现方法:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.CheckBoxCellType checkType = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
- this.fpSpread1.Sheets[0].Cells[0, 0].CellType = checkType;
- this.fpSpread1.Sheets[0].Cells[0, 1].CellType = checkType;
- checkType.EditorValueChanged += new EventHandler(checkType_EditorValueChanged);
- }
- void checkType_EditorValueChanged(object sender, EventArgs e)
- {
- bool isChecked= (bool)(this.fpSpread1.Sheets[0].ActiveCell.Value);
- for (int i = 0; i < 2; i++)
- {
- this.fpSpread1.Sheets[0].Cells[0, i].Value = isChecked;
- }
- }
复制代码 |