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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Undo stack never clear

Thread ID:

Created:

Updated:

Platform:

Replies:

15294 Jun 16,2004 12:19 AM UTC Jun 16,2004 12:38 AM UTC WinForms 1
loading
Tags: GridControl
Lori S. Pearsall
Asked On June 16, 2004 12:19 AM UTC

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 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

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.

Warning Icon 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.Close Icon

;