Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid's column readonly based on another grid's value
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid's column readonly based on another grid's value
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01505542
Message ID:
01505542
Views:
127
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform