>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