回复 1楼wangleiecho的帖子
你好,
可以通过 CheckBox 点击事件来操作单元格背景色:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.CheckBoxCellType ck = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
- ck.EditorValueChanged += new EventHandler(ck_EditorValueChanged);
- this.fpSpread1.Sheets[0].Columns[0].CellType = ck;
- }
- void ck_EditorValueChanged(object sender, EventArgs e)
- {
- }
复制代码 |