We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Undo stack never clear

I have a grid that seems to always have two items on it''s UndoStack. I clear the stacks at Form_Load, but as soon as the grid gets focus, the stack has two items on it. They are : 1) GridModelSetRowColSizeCommand Description - "Column Width 1 to 0" (I''m not shrinking any columns RowColName - "ColumnWidth" (I don''t have a column by that name) 2) GridSelectionStateCommand Description - null I can even sit in the debugger and do a UndoStack.Clear in the Command Window and see the count stay at 2. I''ve commented out my PrepareViewStyle code in case that was causing items to appear on the stack. Any other suggestions?

1 Reply

AD Administrator Syncfusion Team June 16, 2004 12:38 AM UTC

Lori, GridModel.CommandStack.Clear() will empty both the undo and redo stack. You could call that from your Form_Load. Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon