Todd,
You cannot add or overwrite an object method code at runtime.
While you are waiting for an answer, try to search the message area for 'grid runtime method' or something similar. You would be surprised how many times this problem has been discussed already.
>Hello to all,
>
>I get the error "Dblclick is read only" at run time when the statement below is encountered:
>
>thisform.mygrid.column1.text1.dblclick = 'thisform.command3.click()'
>
>Setting the dblclick event at design time works fine but is impractical because my grid columns need to be defined and displayed based on operator input.
>
>Any help would be greatly appreciated.
>
>Best Regards,
>
>Todd Hugus
--sb--