BUG: TWebStringGrid.Objects

TWebStringGrid inherits from TStringGrid, and there's an Objects property defined for TStringGrid along with Cells, Rows, and Cols. But trying to reference it gives a compiler error:

[Error] .pas(123): identifier not found "Objects"

I cannot come up with anything that lets me access that property. Very strange.

I can do this:

var sl : TStrings;
. . .
sl := myGrid.Rows[r];
sl.Objects[r] := TMyObj(myobj);

But ... this doesn't seem to work correctly either. Retrieving

TMyObj(sl.Objects[r]) is always NIL.

We fixed this issue. v2.1 will address this.

1 Like