cell的value就是 checkbox的值
- for(int i= 0; i < fpSpread2.ActiveSheet.NonEmptyRowCount;i++)
- {
- if(fpSpread2.ActiveSheet.Cells[i,0].CellType is FarPoint.Win.Spread.CellType.CheckBoxCellType)
- {
- if(fpSpread2.ActiveSheet.Cells[i, 0].Value != null)
- {
- if((bool)fpSpread2.ActiveSheet.Cells[i, 0].Value)
- {
- // you code
- }
- }
- }
- }
复制代码 |