Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Click event doesn't seem to fire in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00640485
Message ID:
00640528
Views:
15
>You know, I remember something about this. I am wondering why you can't just get on the row somewhere in the grid and double click, like we used to do in List Boxes.

Because grid is "compound" control, which consists of Columns and Headers controls. Column control contains CurrentControl, which is usually a textbox. In order to execute event for the grid you have to execute event for the inner control, e.g. Header or TextBox. Read Mike Helland's FAQ about adding code to grid controls in run-time if your grid has lots of columns and you don't want to code each textbox DblClick event.

BTW, sounds like the "Grid's book" it worth writing. Each chapter may start from the "beginner level" explanations and end with the advanced stuff...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform