>Hi Kenneth,
>
>Works great. Had to change the addobject args around though.
>
>I ended up with
>
>FOR i = 1 TO THIS.COLUMNCOUNT
> THIS.COLUMNS(i).REMOVEOBJECT("text1")
> THIS.COLUMNS(i).ADDOBJECT("text1", "MyTextBoxClass")
>ENDFOR
>
>Thanks for the help
I used essentially this approach in my custom Grid. I'm running into an obscure problem though. This is a readonly grid, and for some reason the display of the textbox is shortened -- only in the cell with focus. I though perhaps the textbox was a different width than the column -- so tried manually setting the textbox to the same width as the columns.
I'm definitely doing something wrong in my textbox definition. If I set sparse to .f. all the controls are shortened. With sparse off only the cell with focus is truncated it.
Thanks in advance for any help.
P.S. I am using dynamic properties to highlight the whole row and make it look like a list box. Could this have something to do with my trouble.
Thanks
Gar W. Lipow