I need a multi columned Treeview for an app I am writing, I was wondering if anyone knew of a free working (in Vs-2010) multi columned Treeview.
There are a number of sample controls to be found around the web:
But the all-time favorite is probably the ObjectListView, which provides an expandable, multi-column ListView, along with many other incredibly handy features:
Warning 2 The referenced assembly "ObjectListView" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. WindowsFormsApplication9 + The type of namespace BrightIdeasSoftware could not be found
@Vade: Yeah, it depends on the
System.Design
namespace, which isn't part of the Client Profile Framework. VS 2010 creates new projects targeting the Client Profile by default, though, so you'll have to change it manually. Go into your project properties and switch to the full .NET 4.0 Framework. Then add a reference toSystem.Design
and recompile.@Vade: Scroll down to the second header (Changing an Existing Project) on this page for step-by-step instructions on how to change the target framework.
@Vade: 1) Yes, you'll need the full version of the .NET Framework rather than the Client Profile. It's about 15% larger, pretty much insignificant. You don't have much choice though.
System.Design
isn't in the Client Profile. 2) You need to read the documentation for ObjectListView. The trade-off for its power is that it's not exactly a drop-in replacement for the standard ListView/TreeView controls. Things behave a little bit differently, but the docs are very very good. See the Getting Started section.The biggest problem I see with ObjectListView is that it is licensed under GPLv3. Why oh why is it not at least using LGPL? Makes it useless except for use in GPL licensed programs.