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 for row/column configuration

Thread ID:

Created:

Updated:

Platform:

Replies:

22821 Dec 23,2004 03:06 AM Dec 30,2004 03:08 AM Windows Forms 7
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 23, 2004 03:06 AM

Hi, Can you please tell how Undo/Redo for the row and column configuration is achieved? Pratiksha

Administrator [Syncfusion]
Replied On December 23, 2004 07:03 PM

I m not sure what your question is. What kind of grid are you using, GridControl or GriddataBoundGrid? What kind of configufration do you want to undo? What kind of UI are you using to let your user set this confiquation? It is likely you will have to write your own undo/redo custom commands unless the things you are doing happen to be part of the grid''s default undo/redo support. Here is a forum thread that discusses custom undo/redo commands with a sample. http://64.78.18.34/Support/Forums/message.aspx?MessageID=17487 To download teh sample in that thread use this link: http://64.78.52.104/support/user/uploads/VirtGridCustomUndo_270.zip

Administrator [Syncfusion]
Replied On December 24, 2004 01:47 AM

Hi, I am using GridDataboundgrid control and by configuration i mean shape size position or color changed. I checked below sample in this GridControl it works fine but in GridDataboundGrid this is not the behavior. >I m not sure what your question is. What kind of grid are you using, GridControl or GriddataBoundGrid? > >What kind of configufration do you want to undo? What kind of UI are you using to let your user set this confiquation? > >It is likely you will have to write your own undo/redo custom commands unless the things you are doing happen to be part of the grid''s default undo/redo support. Here is a forum thread that discusses custom undo/redo commands with a sample. http://64.78.18.34/Support/Forums/message.aspx?MessageID=17487 >To download teh sample in that thread use this link: http://64.78.52.104/support/user/uploads/VirtGridCustomUndo_270.zip

Administrator [Syncfusion]
Replied On December 24, 2004 05:08 AM

>>by configuration i mean shape size position or color changed. I still do not understand. How does your user change the color of something in the grid? I assume you must have added code to allow the user to do this. At that point in your code, you woulds also create a custom undo command and add it into the Command.Undo stack (like what is done in the sample above). You will have to write code that does this as teh grid does not know how you are letting your user change the color of something.

Administrator [Syncfusion]
Replied On December 26, 2004 11:45 PM

Letz say i changed height of my first row and do undo and redo it works properky in the GridControl(sample attached by you) When i try the same thing in DataBoundGRidControl it doesnt work. What extra we need to do for that. >>>by configuration i mean shape size position or color changed. > >I still do not understand. How does your user change the color of something in the grid? > >I assume you must have added code to allow the user to do this. At that point in your code, you woulds also create a custom undo command and add it into the Command.Undo stack (like what is done in the sample above). You will have to write code that does this as teh grid does not know how you are letting your user change the color of something.

Administrator [Syncfusion]
Replied On December 27, 2004 02:50 AM

At the bottom of your Form.Load, you would enable the Command stack by setting: this.gridDataBoundGrid1.Model.CommandStack.Enabled = true;

Administrator [Syncfusion]
Replied On December 30, 2004 02:42 AM

Which method is called when the height or width of the row or column is changed. I want to show tooltip on this change in configuration . >At the bottom of your Form.Load, you would enable the Command stack by setting: > >this.gridDataBoundGrid1.Model.CommandStack.Enabled = true; > > >

Administrator [Syncfusion]
Replied On December 30, 2004 03:08 AM

These events are raised: this.gridDataBoundGrid1.Model.ColWidthsChanging this.gridDataBoundGrid1.Model.ColWidthsChanged this.gridDataBoundGrid1.Model.RowHeightsChanging this.gridDataBoundGrid1.Model.RowHeightsChanged If you want to call a method to set a colwidth or rowheight, you can use: this.gridDataBoundGrid1.Model.ColWidths.SetSize this.gridDataBoundGrid1.Model.RowHeights.SetSize

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.

;