One way to prevent columns from being selected is to place the following code in the when event of the textbox of the column you want the user to bypass:

return .f.


So if you want the user to use only the first column of your grid, just return .f. from the when events of the other 4 columns's textboxes

That's all!!

Rafael Copquin

El 25/08/2013 05:07 p.m., Sytze de Boer escribió:
If I have a grid with (say) 5 columns, what is the best way to force the
cursor to stay in column 1

By way of explanation, the only column in this grid which is not read-only
is the 1st column, and I don't want the user to go anywhere in the grid,
except column 1.

I have tried
IF LASTKEY()=13
    KEYBOARD '{DNARROW}'
    KEYBOARD '{BACKTAB}'
ENDIF

But this is not satisfactory

Sytze



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to