Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataGrid that also supports a tree view [closed]

Do you know of any datagrid-like control that also supports a treeview. Like this (but still fully WPF-stylable/templatable):

Update: UI-virtualization would be another important feature.

enter image description here

like image 693
bitbonk Avatar asked Nov 27 '10 20:11

bitbonk


3 Answers

Telerik has a TreeListView control - http://www.telerik.com/products/wpf/treelistview.aspx. It's not free, but I think it'll do what you want.

like image 142
Andrew Cooper Avatar answered Sep 29 '22 12:09

Andrew Cooper


It probably wouldn't be that hard to create your own from styling a regular DataGrid w/ Groups to look like that. The extra advantage is things like sorting and resizing columns are already taken care of.

Just style the Group Templates to contain the +/- button, folder, and group name, and change your regular DataGrid style to contain a white background with no grid lines. Even the Lines wouldn't be that hard to do if you wanted them

I always find this site useful for figuring out the different DataGrid components

like image 28
Rachel Avatar answered Sep 29 '22 14:09

Rachel


You may look over this Hierarchical Data Library or this PropertyGrid control or this DataGrig control or this xamDataGrid control.

Or Look over this TreeGridControl you may set property of colomn IsReadOnly to False and edit it to WPF(its simple).

Or you can make your own control, for example whith help of this "TreeView+DataGrid in XAML" article, in which you should change TextBlock to TextBox, and make some other changes. Or whith help of this "WPF TreeListView Control" article and comments to it.

like image 33
Sonorx Avatar answered Sep 29 '22 14:09

Sonorx