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.

GridModelCommandManager property differences?

Thread ID:

Created:

Updated:

Platform:

Replies:

7269 Sep 17,2003 07:20 PM Sep 18,2003 01:37 AM Windows Forms 1
loading
Tags: GridControl
Sue Harris
Asked On September 17, 2003 07:20 PM

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 01:37 AM

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

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.

;