>Hello,
>
>I have a grid on my form, initially it's columncount is set to -1. Programatically I set the columncount to 5 (for example) and specify the properties for each column etc.
>However, always the baseclass TextBox is used to populate the columns, is there a way to populate the columns with another textbox class, because I need to have some methods in them.
>
>Thanks for help.
Christian,
Assuming that you have the class "myText" in COOLLIBRARY.VCX
add to your Grid.Init()
* Grid.Init()
this.ColumnCount = 5
SET CLASSLIB to c:\tmp\coollibrary.vcx ADDITIVE
FOR EACH loColumn in this.columns
loColumn.RemoveObject("text1")
loColumn.AddObject("myTextBox", "myText")
ENDFOR
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison