General information
Category:
Coding, syntax & commands
Hi,
The users would like to have the possiblity to use tab and use the arrow keys
when the grids are not in edit mode. (this is so readonly users can navigate the grids easier.) I tried in my grid class to implement the functionality with the following code in the refresh event.
*Allow navigation in the grid
IF thisform.ledit
This.SetAll("enabled",.T.)
This.SetAll("readonly",.F.)
this.AllowAddNew=.T.
this.DeleteMark=.T.
ELSE
This.SetAll("enabled",.T.)
This.SetAll("readonly",.T.)
this.AllowAddNew=.F.
this.DeleteMark=.F.
ENDIF
this.Enabled=.T.
this.readonly=thisform.ledit
The problem is that combos and checkboxes still be clicked even when the grid is in editmode. So it seems that the SETALL command is not working. Does anyone have a better coded solution to this problem?
BR
Tim
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only