TTIGrid allows to view many objects at once. There need a container, like TList, TObjectList, TCollection, etc. which contains the objects. And then the container must be assigned to TTIGrid.ListObject.
var
NewItem: TMyCollectionItem;
begin
// create a collection with 2 items
MyCollection:=TCollection.Create(TMyCollectionItem);
NewItem:=TMyCollectionItem(MyCollection.Add);
NewItem.Color:=clRed;
NewItem.Str:='Some';
NewItem.Int:=123;
NewItem:=TMyCollectionItem(MyCollection.Add);
NewItem.Color:=clBlue;
NewItem.Str:='Text';
NewItem.Int:=789;
// show the collection
TIGrid1.ListObject:=MyCollection;
end;
Or
var
NewItem: TMyItem;
ItemList: TObjectList;
begin
// create a collection with 2 items
ItemList := TObjectList.Create;
NewItem:=TMyItem.Create;
NewItem.Color:=clRed;
NewItem.Str:='Some';
NewItem.Int:=123;
ItemList.Add(NewItem);
NewItem:=TMyItem.Create;
NewItem.Color:=clBlue;
NewItem.Str:='Text';
NewItem.Int:=789;
ItemList.Add(NewItem);
// show the collection
TIGrid1.ListObject:= ItemList;
end;