Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid's column readonly based on another grid's value
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01505542
Message ID:
01505543
Views:
44
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have two grids on the form - the first one controlls the second.
>
>In the first grid I have a combobox which has second column bound (numerical value) and its RowSource a select statement into a cursor (RowSourceType = 3 - according to Marcia Akins type 3 works and type 2 doesn't - I found it to be true).
>
>Now, in the second form I have a column which I want to enable / disable (or make readonly/non readonly) depending on the selected value in the combobox in the top grid.
>
>I tried using cTemp1.Descrip (cTemp being the temp cursor in the select * ... statement in the RowSource), but it didn't work.
>
>I'm wondering how can I check the display property of the currently selected record in the top grid to correctly control the behavior?
>
>Hopefully the explanation is enough.
>
>Thanks in advance.

Why not put the whole logic in Combo Box InteractiveChange event?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform