In my test app I have 2 buttons with the code shown below. btn1 setups up my test grid. btn2 calls sgd1.InsertChildRow(2);.
Calling InsertChildRow(2) messes up the display and sgd1.Clear (or sgd1.ClearAll) throws an error.
What am I doing wrong?
Thanks,
Mike
procedure TForm1.btn1Click(Sender: TObject);
begin
sgd1.Clear;//.ClearAll; // does not seem to matter
sgd1.RowCount := 200;
sgd1.LinearFill(true);
sgd1.ClearCols(0,1);
sgd1.AddNode(28, 20);
sgd1.AddNode(3, 10);
sgd1.AddNode(2, 25);
sgd1.AddNode(1, 50);
sgd1.AddNode(51, 50);
sgd1.AddNode(102, 49);
sgd1.AddNode(151, 48);
end;
procedure TForm1.btn2Click(Sender: TObject);
begin
sgd1.InsertChildRow(2);
end;
We could reproduce this and we are investigating this.