Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling grid cell
Message
From
22/09/1999 21:04:48
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00267849
Message ID:
00267861
Views:
34
>How do you disable certain cells in a grid without disabling the whole column? Depending upon certain condition, I need for each row/record to have certain column(s) disabled for dataentry.
>
>For example, if I have 5 columns with 2 records/rows, I want to disable column 3 for the first record but disable column 5 in second record. IOW, each record/row can have different columns disabled.
>
>TIA.

You may add two controls (textboxes) to each column, one is permanently enabled and another- disabled. Then you will use Column.DynamicCurrentControl to 'enable/disable' cells (property expression will be based on some record field value).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform