JDN
asked on
Jump automatically to next column in DBGrid
Hi Experts,
One of my Delphi 5 applications has a DBGrid where article numbers should be entered. All article numbers are exactly 6 characters long.
What I want is, when a user enters an article number in the DBGrid, the cursor in the DBGrid automatically jumps to the next column when 6 characters have been entered. As far as I can see, all events in the DBGrid or in the Query are triggered when the Enter key is pressed. But I don't want to wait until the user presses the Enter key. As all article numbers are 6 characters long the DBGrid must automatically jump to the next column when the 6 characters are entered. And because this next column contains always 1 character, the DBGrid should jump to the third column when 1 character is entered in this column (without pressing the Enter key !!).
Is there a way to do this?
Thanks,
JDN
One of my Delphi 5 applications has a DBGrid where article numbers should be entered. All article numbers are exactly 6 characters long.
What I want is, when a user enters an article number in the DBGrid, the cursor in the DBGrid automatically jumps to the next column when 6 characters have been entered. As far as I can see, all events in the DBGrid or in the Query are triggered when the Enter key is pressed. But I don't want to wait until the user presses the Enter key. As all article numbers are 6 characters long the DBGrid must automatically jump to the next column when the 6 characters are entered. And because this next column contains always 1 character, the DBGrid should jump to the third column when 1 character is entered in this column (without pressing the Enter key !!).
Is there a way to do this?
Thanks,
JDN
listening
it's not too hard,
sample follows
(no delphi on hand yet,
but i've already done something like that)
meikl ;-)
sample follows
(no delphi on hand yet,
but i've already done something like that)
meikl ;-)
ASKER
Well Meikl,
Do you have a sample for me?
JDN
Do you have a sample for me?
JDN
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Meikl,
Thanks for the advice (although the promised example would have been helpfull). Meanwhile I figured the thing it out myself using your suggestions.
I will be fair and give you the points.
Thanks for the advice (although the promised example would have been helpfull). Meanwhile I figured the thing it out myself using your suggestions.
I will be fair and give you the points.
ooops, sorry, had forgotten this q.
glad you got it work,
glad to helped you
meikl ;-)
glad you got it work,
glad to helped you
meikl ;-)