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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridModelCommandManager property differences?

Thread ID:





7269 Sep 17,2003 11:20 PM UTC Sep 18,2003 05:37 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On September 17, 2003 11:20 PM UTC

Hi, I've been looking at turning off the undo information in my grid during certain functions (where I set the default row size for example). However I've been struck by the number of properties which seem to be related to this. What is the difference between the IsRecording, ShouldGenerateUndoInfo and Enabled properties? (And am I correct in guessing that what I want to do to temporary disable recording of undo commands is set Enabled false?). Thanks, Sue

Administrator [Syncfusion]
Replied On September 18, 2003 05:37 AM UTC

Setting grid.CommandStack.Enabled is the way to turn off undo information. The other two properties you mentioned are used within the undo code to decide whether or not the code should save undo information. (There are times other than when CommandStack.Enabled = false when the undo ifnormation should not be generated. For example, if you are in a redo, you do not want to generate the undo information. IsRecoring and ShouldGenerateUndoInfo help track the state of undo operation so it can be easily obtained by the programmer as needed.)


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon