View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Mon Jul 04, 2005 2:07 pm Post subject: Undo Functionality |
|
|
Hi
I have implemented an Undo functionality in a Test App.
In a Toolbar I have an Undo Button. A Virtual Tree is bound to a DataTable.
I have subscribed the SetCellValue event. In the Event Handler I enable the Undo Button.
In the Event Handler of the ToolBar I call the RejectChanges() Method of the DataRow.
The Problem ist that the SetCellValue event fires after tabbing to the Next Cell and I can't perform a Undo on the Current Cell.
Is there a possibility to implement my behaviour?
Thanks and best Regards
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Jul 04, 2005 10:50 pm Post subject: |
|
|
I think I understand your problem. The SetCellValue is method hooked by default to the Validated event of the editor control. This makes sense generally because it means that the data value is only set when the user has finished editing it. You can however change this by setting the UpdateValueEvent property of the CellEditor to another event (eg ValueChanged) that is fired each time the control value changes.
If this hasn't helped maybe email a zipped project that illustrates the problem to support@infralution.com _________________ Infralution Support |
|
Back to top |
|
|
|