回复 3楼founderedu1的帖子
请通过以下方法设置spread单元格值:
- private void GcSpreadSheet_ValueChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.CellEventArgs e)
- {
- this.gcspreadsheet1.SuspendEvent();
- int row = e.Row;
- int col = e.Column;
- gcspreadsheet1.ActiveSheet.Cells[row, col].Value = 1;
- this.gcspreadsheet1.ResumeEvent();
-
- }
复制代码 |