>I'd like to add more controls to each column of grids on the fly. I can create a name for the new control but what about a class? I'd like to have same class as a default current control. I am not sure if it's possible. If it is then what should I put into this exp.:
>ThisFrom.grdGrid.Column1.AddObject('newcontrolname', )
>Thanks Mark
You could either :-
1) EVALUATE the class of the default control
2) Loop through the columns Controls collection (array) until you find the one with the same name as the default, then grab its Class property.
e.g.
1)
lcClass = EVALUATE( "ThisForm.grdGrid.Column1." +
ThisForm.grdGrid.Column1.CurrentControl + ".class")
Then
ThisForm.grdGrid.Column1.AddObject('newcontrolname', lcClass)