How to make datagrid support tree

Nov 19, 2008 at 11:32 AM
Edited Mar 9, 2009 at 6:14 AM
I tried to implement a tree in DataGrid, following is the source and screen snapshot of current implementation.
I want to know whether there is a easy way to draw the line to connect the sibling nodes.
Now, some vertical lines are missing.
http://img511.imageshack.us/my.php?image=treeindatagridtq4.jpg
http://www.box.net/shared/vcd86u0cmb



Following is the code I referenced during development.
http://www.codeproject.com/KB/list/treelistview.aspx
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/30cb182c-9419-40bd-946e-87971515fb95/

Mar 8, 2009 at 1:04 PM
I cannot download the code from your link. Could you please do me a favor to send it to me?
And I think vertical lines are easy to implement using images and event trigger when they are sibling nodes.
Mar 9, 2009 at 6:15 AM
The link of the source code is updated.