>I have a grid on a pageframe with validating code in the valid event of the column textbox. The textbox has a
>maxLength of 6. When entering data the cursor moves to the next column
without firing the valid event. if I
>click on the textbox and tab or enter the valid event fires correctly. I have search this forum for answers and
>found none relating. I have tried forcing the focus using textbox::gotfocus in the textbox gotfocus event without
>success. When the add button is clicked, I set the clm focus at the end of the click code...no difference.
>The cursor is blinking in the textbox when data entry begins, appearing to have focus, but the valid event does
>not fire when the cursor leaves unless I manually click on the textbox berfore hitting tab or enter.
>Can anyone tell me what's going on? Thanks, Chuck
If you do entry then focus is obviously on textbox. Maybe you have code in some other events, e.g. Interactive or ProgrammaticChange that moves focus out? I would suggest you to check when Textbox.LostFocus event gets triggered during the entry process. Btw, placing valiadation code there, i.e. using LostFocus instead of Valid would be quite consistent too.
Edward Pikman
Independent Consultant