Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly Grids.
Message
From
09/12/2002 09:41:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Readonly Grids.
Miscellaneous
Thread ID:
00730859
Message ID:
00730859
Views:
80
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
Map
View

Click here to load this message in the networking platform