>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.