Please bear with my poor english.
I want to extend TStringGrid to have a hide row function (new class TStringGridExt).
The idea I've got from older post in this forum is to use a container to store the hidden row.
For the container I've chosen another TStringGrid (also it is a TStringGrid with a variable backUp of type StringGrid).
This way I can simply check visually how the class work by assigning a second StringGrid created at design time as backUp.
Everything has worked well, but now I need to use a backUp TStringGrid which is created on run time. Thus not visible nor accessible visually.
if (backUp = nil) then
backUp:= TStringGrid.Create(Self.Parent); //Self is a TStringGrid
if (backUp.RowCount=0) then exit; //this line will create an error.
What have I missed by the manual creation of backUp?
Thanks,
Brad