General information
Category:
Coding, syntax & commands
Hi Milt.
>> All seems to work well while I'm in the grid but when I move to a command button which is not in the grid the messagebox does display but the command button receives focus which is not what I want to happen. I want focus to remain on the grid. Thanks for any ideas. <<
You are not doing anything wrong. This is a known bug - the Valid of the grid fires before the Valid of the contained controls. So what is happening is that by the time your textbox Valid fires, the grid has already lost focus. A workaround is to put something like this in the grid's Valid:
RETURN This.colWhatever.txtWhatever.Valid()
Marcia
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only