Hi guys,
I have a textbox and a grid right below the textbox .. now as the user types into the textbox ... the matching result set is displayed in the grid below... This is all working fine ... now i want the cursor to be inside the grid just as soon as the user presses the down-arrow key in the text box .
i'v put this code into the keypress event of the textbox :
IF NKEYCODE=24
THIS.Parent.Grd_List2.SetFocus
ENDIF
it does work .. becoz i get the value from the first row inside the grid .. but the cursor does not stay inside the grid .. instead jumps to another textbox. any idea how to keep the cursor inside the grid.
thankx guys.
Vijay Singh Rawat
I have a textbox and a grid right below the textbox .. now as the user types into the textbox ... the matching result set is displayed in the grid below... This is all working fine ... now i want the cursor to be inside the grid just as soon as the user presses the down-arrow key in the text box .
i'v put this code into the keypress event of the textbox :
IF NKEYCODE=24
THIS.Parent.Grd_List2.SetFocus
ENDIF
it does work .. becoz i get the value from the first row inside the grid .. but the cursor does not stay inside the grid .. instead jumps to another textbox. any idea how to keep the cursor inside the grid.
thankx guys.
Vijay Singh Rawat