请参考- gcSpreadSheet1.CanUserUndo = true;
- private void button1_Click(object sender, RoutedEventArgs e)
- {
- GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent group = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5);
- GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction action = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(this.gcSpreadSheet1.ActiveSheet, group);
- this.gcSpreadSheet1.DoCommand(action);
- gcSpreadSheet1.Invalidate();
- }
复制代码 |