Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Apply Changes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Apply Changes

 Post Reply Post Reply
Author
Message
Fossil View Drop Down
Groupie
Groupie
Avatar

Joined: 29 April 2006
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fossil Quote  Post ReplyReply Direct Link To This Post Topic: Apply Changes
    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?
Back to Top
mlatona View Drop Down
Senior Member
Senior Member


Joined: 19 April 2005
Location: Germany
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote mlatona Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2007 at 3:34am
Hi,
 
I had the same problem. You must write following code in the 'ValueChanged' event.
 
'reportcontrol.Redraw'
Back to Top
Fossil View Drop Down
Groupie
Groupie
Avatar

Joined: 29 April 2006
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fossil Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post 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. 
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.