with TheGrid.TheColumn .RemoveObject( "text1" ) .AddObject( "text1", "MyTextboxSubclass" ) endwith define MyTextbox as Textbox function DblClick() ... do something interesting here endfunc enddefineYou also should not use FormName to reference controls, you are not guaranteed that the memvar will always be that. Use one of nameless references like this, this.parent, thisform instead.
>FormName.PageFrame.PageNumber.GridName.ColumnName.TextBoxName.DblClick = 'ThisForm.DisplayName' >