Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicreadonly like property..
Message
From
28/11/2003 05:22:45
 
 
To
28/11/2003 05:11:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854151
Message ID:
00854152
Views:
16
>It could be nice if the grid had a dynamicreadonly property.
>
>Is there anyway I can mimic this functionality in code. The problem is I would like some cells in a column to be readonly and some cells to be editable based on the criteria (workspec.rowstatus=1).
>
>This there anyway to do this?
>
>BR
>Tim


Tim,

I usually add another control to the column. One Control is set to ReadOnly = .T., the other ReadOnly = .F.

Then it is just a matter of using DynamicCurrentControl.

You can use the DynamicBackColor to let the user see whether the cell is editable

Another possibility would be to return FALSE (if not editable) from the when() event of the currentcontrol of the column
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform