Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid's column readonly based on another grid's value
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid's column readonly based on another grid's value
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01505542
Message ID:
01505542
Vues:
128
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform