>Hi Cetin
>
>I got your sample code working and have been able to study the results. All in all I was able to understand that cCode as far as the data-entry is concerned is not at all required. My TreeView was based on the cCode order which I have switched to iSrNo (equivalant to your Item or OrderIngroup) and there is no change in data-entry look and feel, atleast yet <g>.
>
>Now comes the fields RootID and Level. As far as the data-entry is concerned I don't think that it will be required, because without them and cCode the TreeView still looks as before. These same 2 in your code are generated on the fly, is that what I am to do, ie. generate them on the fly, so that they do not have any management issues?
>
>Please advise and thanks again for sharing your ideas and codes.
Yes, rootID and level are just created on the fly for treeview ordering. It both helps to collect a node and its children directly from that cursor and/or prevent treeview errors like "Item doesn't exist in collection" (a parent node should be added before adding any child node).
Cetin