Filling TreeView from database
Hi,
to fill a TreeView with data normally I use the Items array in the object inspector. But now I want to load a dynamic data structure into a TreeView, which is stored in a database. It was not so a problem to create a Items array with the data of the database. My real problem is to get the data into the TreeView component. I tried all the TreeView events and also before/after
$Main->loadResource(__FILE__) and $Main->show(), but nothing works. It seems that the Items property of the TreeView object isn't available at no time. How is it possible to initialize a TreeView with own dynamic data?
Greetings,
Wolfgang
|