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.
Unfortunately, activation email could not send to your email. Please try again.

Undo stack never clear

Thread ID:

Created:

Updated:

Platform:

Replies:

15294 Jun 15,2004 08:19 PM Jun 15,2004 08:38 PM Windows Forms 1
loading
Tags: GridControl
Lori S. Pearsall
Asked On June 15, 2004 08:19 PM

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?

Administrator [Syncfusion]
Replied On June 15, 2004 08:38 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;