> I didn't say it's hard, I said it's not easy :) It requeres at least to have this class... BTW, in my Input classes I created Inp_Grid with ability to change standard TextBox class to be my class in Run time. I have a question:
> After RemoveObject('text1')
> NewObject('text1', CustomClass, ClassLib)
> text1.visible=.t.
> Do I need to add also
> CurrentControl='text1'
> or I don't?
I normally do, but that's because I add the new control with a new name and assign it to the CurrentControl before deleting out the default textbox. Doing this makes it easy to grab any properties that were inherited when the initial textbox was added by default that I might want in the new grid object.
I'd also advise wraping the whole thing with a
form reference.lockscreen = .T. for the entirety of adding columns, so that the grid doesn't visibly alter its appearance until all the modifications are complete.