Hi Ronnie,
I received your classes, but I didn't receive test table and your test program. Anyway, first strange thing: why do you set all columns controlsource in grid.Refresh. You should do it once in Grid Init or better in design time.
The second strange thing: why do you have a container object, if it contains a grid only. Though, perhaps you plan to add another object lately, say, GridHighlighter, so it would make sense.
In order to fix your current problem, I believe, all you have to do is set focus (programmatically) to the grid, say, in form.activate or form.refresh method. But I bet the problem is in the grid Refresh method. Try to take out all it's code and design this grid in design time (seems like you're doing this anyway, but the RowSource for this Grid is set to some other table).
See, if this would help, if not, I need a table (with only few records) and a test program.
>sorry,,maybe I am not understanding..in fact I know i am know
>i am not understanding. Not sure how to use that code.
>I'll try again.
>
>Okay, I have a container object with a grid in it and in
>grid1.column1.header1.text1.dblclick() I have following code
>
>
>=messagebox('message')
>
>I run exe and the main form loads and i use addobject() to add
>this container grid to my form. I query a database , add some records
>to my grid object and then dblclick on the column1.header1.text1 and
>nothing happens? I want the messagebox() to run but it does not. Maybe that makes sense??
If it's not broken, fix it until it is.
My Blog