Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling some rows in a grid
Message
From
18/11/2003 14:45:36
 
 
To
18/11/2003 13:00:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00851094
Message ID:
00851137
Views:
16
Thanks to both you and Chuck.

Yossi

>>Hi All:
>>
>>Can I disable some columns in some rows in a grid?
>>
>>Something like:
>>
>>
>>FOR i = 1 TO thisform.NumberOfRecords
>>	IF somecondition(i)
>>		thisform.grid1.column1.chkBox[i].enabled = .f.
>>	ENDIF
>>NEXT
>>
>>
>>Thanks,
>>
>>Yossi
>
>You can use the column.DynamicCurrentControl property.
>Add another checkbox to the column exactly like the current one, except set Enabled=.F.
>then
>
this.Column1.DynamicCurrentControl="IIF(somecondition,'chkBox1','chkBoxDisabled')"
Previous
Reply
Map
View

Click here to load this message in the networking platform