I have a grid where I am validating the data in the BeforeRowColChange event when the user tries to exit the row. One of the cells being validated is the default text box containing the quantity desired. If the user forgets to enter the quantity, the validation code generates a reminder window, then does:
THIS.grcQty.grtxtQty.SETFOCUS()
NODEFAULT
The problem is that afterwards, the textbox is SELECTED, not just entered. The box is highlighted, and keystrokes don't appear unless the user exits the textbox and re-enters it.
The .selected property of the textbox is still at the default .F..
Can anyone tell me why this is happening, and how to fix it?
Thanks,
Neil Preston