Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Grid Solution Needed?
Message
 
To
30/09/1998 12:58:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00142467
Message ID:
00142532
Views:
35
>>Hi Everyone,
>>
>>How could I control a single row from a Grid? For Example, Set a particular row to be ReadOnly = .T. while other rows are ReadOnly = .F. if specific condition is setted.
>>
>>Any Help is Appreciated.
>>
>>Steve
>>
>>P.S. Want to thanks both Ken Weber and Edward Pikman for their help.
>-In afterrowcolchage you could check recno() and change grid.readonly. It wouldn't be a problem all is readonly or readwrite for it's important for current control.
>-Or you might take the long way and duplicate controls with readonly = .t. ones, place your expression in dynamiccurrentcontrol.
>-Loop via columns and change readonly state etc
>Cetin

That would work, but it you wanted to have some columns on the row read and others read only you could put this in the afterrowcolchange:

WITH THISFORM
FOR t = 1 to .grd1.columns()
.grd1.columns(m.t).readonly = IIF(???, .T., .F.)
ENDFOR
ENDWITH

You could replace the IIF WITH a DO CASE for each m.t value, i.e. each column of the grid.
Ken Sorce
Team RAD, Inc.
Rapid Application Developers
Ken@TeamRAD.com
www.teamrad.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform