>Hi all
>
>I am trying to capture a double-click inside a grid, right now the double click is not registered by the grid. This grid is dynamic so the columns are not in my control to program to put in the controls double-click.
>
>Please advise.
Are the controls you put in subclassed ? If yes you can 'propagate' the clicks to the grid, ie on clicks the control calls a method of the grid if it detects that is in one
something like
=this.Parent.Parent.Cell_Click_Right(this)
Then in the grid method you can check the class/controlsource of the object passed and act accordingly
Even if the grid is dynamic, in the init or the RecordSource assign, you can loop through the columns, find out the type of the controlsource and subsitute your subclassed control depending on the type of the controlsource, add your own header class, ... Been doing this for ages
Also, I've stopped using the designer for grids a long time ago, think I must have one form left where I do so. When, programmaticchange, .... all call form methods. I put the code there
Gregory