Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling some rows in a grid
Message
From
18/11/2003 12:51:37
 
 
To
18/11/2003 12:44:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00851094
Message ID:
00851096
Views:
18
>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

How I do this is use two checkbox objects in the column.
Having one's enabled property set to true and one to false.
Then in the DynamicCurrentControl of the column set IIF(somecondition(), 'chk_Enabled','chk_Disabled')
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform