Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids - disabling only certain rows
Message
 
À
07/04/2002 22:14:05
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00642018
Message ID:
00644754
Vues:
10
Hi Jordan,

One way of disabling a cell in a grid is to have the When() event of the textbox return .f.

Now you could conceivably have that when() event return false if the active cell is not on the selected row. This could be achieved by saving the "current" rownr in a property of the form and then returning in when() whether or not the recno() is equal to the value in the property.

You would then have to find a way to kind of reenable another rows which may turn out to be tricky.

Why do you want to do this in the first place if that is not too nosy?

HTH,

Marc




>Hi all,
>i have a grid that has two columns. what i want to happen is that when i select a row all other rows become disabled except the one selected. is there a way to do this? or do i need to disable the whole grid and bring up the values in other controls???
>
>Jordan

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform