Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00691654
Message ID:
00691659
Vues:
12
>Is there a way to do the following -
>
>On a grid control, after the user clicks on the row (selects a row/column cell) and hits enter key ; I need to run the click event of the commond button on the same form.
>
>Thanks.
>Neetu

Set DEFAULT property of this button to true. It means, what every time the Enter is pressed, the button's code is executed.

If this is not the desired behavior, there are two choices I know of:

1. Substitute grid's column textboxes with your own textbox class, where KeyPress method is programmed the way you need.

2. Put necessary code in Form's KeyPress using the technique showed recently by Gregory Adam Re: Keytrapping in a Grid Thread #679588 Message #679667.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform