Collapse/Expand

Hi to all
I am facing from with collapse/expand property. acually, my data comes from databse. according to the database data my tree is being created.
i have been use for this using dataset demo sample given in sample with Godiagram package.
my problem is that .
1). I am not understand how to use collapse/expand feature.
2). When i add or modify the node this effect is not reflected at that moment. that reflaction is affected on that same position, beneath it i want to add.
it is urgent.
waiting for your response
Thanks in Advance

This feature is now part of the updated DataSetDemo sample in version 3.0.

I also took the liberty of adding support for ExpandAll, which TreeAppNode (from the TreeApp sample) does not have.