I found the following recursive function which populate treeview in one go. I implemented it on my “Empresso” project and it makes my 500 line previous function down to 100 lines and also increase a lot of performance…wow, So I thought I should keep it on my blog so that I can implement it later [...]