Apply Changes |
Post Reply |
Author | |
Fossil
Groupie Joined: 29 April 2006 Status: Offline Points: 46 |
Post Options
Thanks(0)
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?
|
|
mlatona
Senior Member Joined: 19 April 2005 Location: Germany Status: Offline Points: 124 |
Post Options
Thanks(0)
|
Hi,
I had the same problem. You must write following code in the 'ValueChanged' event.
'reportcontrol.Redraw'
|
|
Fossil
Groupie Joined: 29 April 2006 Status: Offline Points: 46 |
Post Options
Thanks(0)
|
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. |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |