Hi,
TMS WEB Core 2.9.9.2 has introduced what seems to me like a bug: When you change a TWebStringGrid’s RowCount, it clears the entire grid.
This can be reproduced by creating a new web app and adding a TWebStringGrid then adding the following code to the main form create:
procedure TForm1.WebFormCreate(Sender: TObject);
var
r: integer;
begin
for r := 0 to WebStringGrid1.RowCount - 1 do
WebStringGrid1.Cells[1, r] := IntToStr(r);
WebStringGrid1.RowCount := WebStringGrid1.RowCount + 1;
r := WebStringGrid1.RowCount - 1;
WebStringGrid1.Cells[1, r] := IntToStr(r);
end;
Since the TWebStringGrid has 5 rows by default, you’d expect this to give a grid with 6 rows and the numbers 0 to 5 in the 2nd column. Instead you get this:
That is because when the RowCount is changed, the existing contents of the grid are cleared.
I rolled back to version 2.9.9.1 and it doesn’t do this.
Thanks.
