how to get all items in treeGrid?

for instance,I create a subject :TreeGrid grid = new TreeGrid<>(); and push objects to the grid,how can I get all objects I put into the treegrid?

When you are pushing the objects to the Grid, also push them to a List. Then you can read the objects from the List.

-Olli

Olli Tietäväinen:
When you are pushing the objects to the Grid, also push them to a List. Then you can read the objects from the List.

-Olli

well,thank you ,i will used a list