Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I disable one row on a grid?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00391037
Message ID:
00391044
Views:
14
>Suppose I have a grid that's running off of a table. The grid displays 4 fields across from this table. When the third field is TRUE for particular line, I want this line of the grid to be disabled. How do I do this?

Not the row, but you can enable/disable or readonly (.T./.F.) columns at your command. Put your code in the AfterRowColChange event of the grid.
If mytable.taxable
   This.SetAll("ReadOnly",.T.,"COLUMN")
Else
   This.SetAll("ReadOnly",.F.,"COLUMN")
Endif
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform