private void bspr_StepData_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { if (this.bspr_StepData.ActiveSheet.RowCount > 0) { if (e.ColumnHeader) { if (e.Column == this._iSelectColIndex) { FarPoint.Win.Spread.CellType.ICellType ct = this.bspr_StepData.ActiveSheet.ColumnHeader.Cells[e.Row, e.Column].CellType; if (ct is FarPoint.Win.Spread.CellType.CheckBoxCellType) { this._Initialization.SetCheckColumnHeaderStatus(this.bspr_StepData, this._iSelectColIndex); } } } } }
private void bsprData_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { if (this.bsprData.ActiveSheet.RowCount > 0) { if (e.ColumnHeader) { if (e.Column == (int)BISTel.eSPC.Common.enum_OCAPLIST.SPC_V_SELECT) { FarPoint.Win.Spread.CellType.ICellType ct = this.bsprData.ActiveSheet.ColumnHeader.Cells[e.Row, e.Column].CellType; if (ct is FarPoint.Win.Spread.CellType.CheckBoxCellType) { this._Initialization.SetCheckColumnHeaderStatus(this.bsprData, (int)BISTel.eSPC.Common.enum_OCAPLIST.SPC_V_SELECT); } } } } }
private void bsprParam_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { if (!_bSingleSelect) { if (this.bsprParam.ActiveSheet.RowCount > 0) { if (e.ColumnHeader) { if (e.Column == 0) { FarPoint.Win.Spread.CellType.ICellType ct = this.bsprParam.ActiveSheet.ColumnHeader.Cells[e.Row, e.Column].CellType; if (ct is FarPoint.Win.Spread.CellType.CheckBoxCellType) { this._Initialization.SetCheckColumnHeaderStatus(this.bsprParam, 0); } } } } } }
public void setCellType(FarPoint.Win.Spread.CellType.ICellType cellType) { this.fp.ActiveSheet.Cells[RowIdx, ColIdx].CellType = cellType; }
/// <summary> /// 设置单元格的类型 /// </summary> /// <param name="obj"></param> /// <param name="ICT"></param> /// <param name="IntRow"></param> /// <param name="IntCol"></param> public void SetCellType(FarPoint.Win.Spread.SheetView obj, FarPoint.Win.Spread.CellType.ICellType ICT, int IntRow, int IntCol) { obj.Cells[IntRow, IntCol].CellType = ICT; }