Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a row in a grid
Message
 
 
To
08/04/2003 19:08:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00775289
Message ID:
00775315
Views:
14
>I'm using VFP 6.0 and I have a grid that has 5 columns, one of my columns is the ending date.
>When the ending date becomes < DATE() I want to disable that row. When I disable my columns object i.e. text box, the complete column becomes disabled.
>
>
>Can anyone help me with this problem!
>
>tx

What do you mean by disabling? I know two solutions for this problem. One is to try to put the following code in AfterRowColChange event of the grid:
this.ColumnMyDate.readonly = MyTable.MyDateField< date()

Another way would be to have two textboxes (one enabled and another disabled) and use DynamicCurrentControl to set control appropriately.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform