>Hi Gregory
>
>>Are the controls you put in subclassed ?
>
>Yes
>
>>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
>
>Done. I like your idea of updating the control classes to check for this.parent.class = "COLUMN" or maybe this.parent.parent.class = "GRID" and then put in the this.parent.parent.dblclick() call.
>
>Thanks a lot for your idea.
you're welcome.
The best check is imo
this.Parent.BaseClass = 'Column'
this.Parent.Parent.BaseClass = 'Grid'
oh, and pass the object reference as well: this.parent.parent.dblclick(
this). You'll find out you need it
Gregory