Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DblClick in the Grid
Message
From
21/06/2000 17:59:47
 
 
To
21/06/2000 17:03:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00382904
Message ID:
00382929
Views:
23
>I have a grid with the columns changing on the fly. Basically I show different lookup tables in a single grid. I would delete all columns, change the RecordSource and Refresh - all the columns and controls are recreated according to the new RecordSource table structure.
>
>Now, I desperately need to catch DblClick event on the grid, but as soon as I have columns, textboxes and other stuff inside - only innermost control recieves the event.
>
>Any quick & dirty way around it?

Put your code in the Grid.DblClick method. Now you need to put a reference to that in all the places you need it. For Example:

In each columns' TextBox.DblClick you'd put this.Parent.Parent.DblClick()

The TextBox has as it's Parent the Column, which has as it's Parent the Grid.

If you need it on the Header, you'd do a similar thing, but you only need 1 parent reference, this.Parent.DblClick()

HTH.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform