TreeView is a tree view, a hierarchical list of items. You can manage its items through its Items property.
Add Items at Runtime
To add items to your TreeView at runtime, set its Items property to an array with the items and subitems, distributed hierarchically on the array the same way they should on the tree view:
$items=array(); $items=array ( 'Caption'=>'Item1', 'Items'=>array( array('Caption'=>'SubItem1'), array('Caption'=>'SubItem2') ) ); $this->TreeView1->Items=$items;