回复 1楼nalen的帖子
测试代码如下:
- 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?";
- ckbxcell.EditorValueChanged += ckbxcell_EditorValueChanged;
- fpSpread1.Sheets[0].Columns[0].CellType = ckbxcell;
- }
- void ckbxcell_EditorValueChanged(object sender, EventArgs e)
- {
- int activeRow = this.fpSpread1.ActiveSheet.ActiveRowIndex;
- int activeCol = this.fpSpread1.ActiveSheet.ActiveColumnIndex;
- bool flag = (bool)this.fpSpread1.ActiveSheet.Cells[activeRow, activeCol].Value;
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |