Print Page | Close Window

Apply Changes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=7412
Printed Date: 18 October 2024 at 5:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Apply Changes
Posted By: Fossil
Subject: Apply Changes
Date Posted: 19 June 2007 at 10:01pm
Seems that if you edit a cell and click on another row without hitting enter in the current cell, the actual changes to that cell do not get applied until after the SelectionChanged event completes.  This can be seen by changing a value and having a message box in the SelectionChanged event.  How can you force the change to be applied?  Similar to the PropertyGrid, where the enter key ends the edit of the cell, is there some method called EndEdit?



Replies:
Posted By: mlatona
Date Posted: 20 June 2007 at 3:34am
Hi,
 
I had the same problem. You must write following code in the 'ValueChanged' event.
 
'reportcontrol.Redraw'


Posted By: Fossil
Date Posted: 20 June 2007 at 11:36am
Cool that fixes that issue.  I also noticed that when making a change, then clicking a command bar prior to hitting enter in the cell is fixed the same way by issuing a redraw in the execute of the command bar.  Still think there should be some .EndEdit method or fire the ValueChange once focus is lost.

Thanks for your help.


Posted By: apuhjee
Date Posted: 20 June 2007 at 11:55am
I'm having a similar problem with PropertyGrid.
 
Let's say a user changes a property value and you'd like to confirm this change - so you display a confirmation dialog from the .AferEdit() event.  While the MessageBox is showing, the value in the property grid reverts back to the original value. 
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net