Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Undo Functionality

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Mon Jul 04, 2005 2:07 pm    Post subject: Undo Functionality Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jul 04, 2005 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group