Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

column focus

Status
Not open for further replies.

Rottdpogs

IS-IT--Management
Jul 17, 2001
86
CN
Please advice. im having difficulty in focusing the column grid. i code :
if nkeycode=13
grid.column1.setfocus
endif
but whenever i clicked the enter key it jump the next column. thanks in advance
 
Rottdpogs

Can you clarify what you trying to do? Are trying to prevent the cursor to move to any other columns then column1? Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
actually i like to prevent the cursor move to other column whenever i click the enter key. please advice.
on keypress event of column1
if nkeycode=13 && enter
select dbf
skip
grid.column1.setfocus
endif
but my problem is that whenever i click the enter key it goes to the next record of the next column
thanks.
 
Rottdpogs

Try using this:

if nkeycode=13 && enter
NODEFAULT
select dbf
skip
grid.column1.setfocus &&not required
endif
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Sorry I meant:

if nkeycode=13 && enter
NODEFAULT
select dbf
skip
grid.column1.setfocus && not required
endif
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
mgagnon,
thanks for the quick reply, your advice works. thank you again it works.
please advice me again, regarding row highlight. how can i highlight the whole row when its selected? currently i mark the row selected and make use of the dyanmic color of the grid. is there another way coz everytime i selected the row i replace all the mark with .f. and mark the selected record to .t.
thanks a lot.
 
See Tek-tips' FAQ section at faq184-1264.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top