Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Grid Rows
Message
 
 
To
06/10/2010 10:43:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01484155
Message ID:
01484159
Views:
38
>I have a grid on a form. It has 2 columns, a checkbox and a text box. I would like to disable certain rows (actuallly the checkbox) from being able accessed, i.e. clicked on, so that I can show the user there are certain rows but they cannot choose them. Is there a way to do that?

1. You can use When logic of the checkbox

2. You can set column to readonly in AfterRowColChange method of the grid depending on condition (that's the method I often use).

If you want this to be applied to multiple rows, then one of the ways is to use dynamiccurrentcontrol with enabled and disabled checkboxes.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform