Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00691654
Message ID:
00691659
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform