General information
Category:
Forms & Form designer
Title:
Validation inside a grid!!!????!!!???
I have a simple grid. There is an amount field that I want to be greater than zero. In the valid, I check for this.value > 0, if not true, I display a messagebox and return .F.
Works great when I am trying to click anywhere in the grid....BUT....if I click on either the "ADD" or "DELETE" command buttons below the grid, the valid message fires, but focus seems to be set on the command button. I can click the same button again and the amount valid does not fire.
If I don't click on the same button again, and try to type a valid amount, the typing does nothing, because focus is on the button.
If I disable the buttons when the valid returns .F., focus seems to go into never never land.
Can someone help....? Thanks....Tim
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