for each loCol in this.Columns with loCol .RemoveObject( "text1" ) .AddObject( "text1", "YourClass" ) endwith endfor>I have a Grid added to a form using 'AddObject'. After setting columncount, I added a textbox object to the columns using a subclassed textbox with code in the GotFocus, & LostFocus events. When running the form, the GotFocus & LostFocus event of the custom textbox control don't fire when the object gets or loses focus. To verify that the subclassed textbox was built correctly, I added a textbox based on the custom class directly to the form and the Gotfocus & LostFocus events fire normally.