ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2014-08-25 07:14:28

asparatu
Member
Registered: 2014-08-20
Posts: 196

Undo/Redo

Is there any way to clear the undo or redo stack?

I have setup the grid programmatically and i want to be able use the undo and redo but i want to clear the stack before they enter any information in because i want to keep the format the way i created it.

Shane

Offline

#2 2014-08-25 07:50:24

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Undo/Redo

Currently there is no way to clear undo/redo stack, for solve this a new method 'ClearActionHistory' will be added in next version.

And I'd like to recommend you that use methods such as 'SetRangeDataFormat' rather than 'DoAction' to setup a grid, the 'DoAction' method will put actions into stack but other normal APIs will not.

Last edited by Jingwood (2014-08-25 07:51:32)

Offline

#3 2014-08-25 08:18:49

asparatu
Member
Registered: 2014-08-20
Posts: 196

Re: Undo/Redo

Thank you.. for your help and response

So if want to add data to the cell i would use this grid.SetCellData("A1", "Text") instead of grid.cells("A1").Data = "Text", correct

Update: I have test it and does with the setcelldata also..

Last edited by asparatu (2014-08-25 09:02:32)

Offline

Board footer

Powered by FluxBB