How to make a hierarchical gridview???
-
hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.
-
hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.
You'll need a third party grid to do this. The DataGridView in the .NET Framework does not support this. I suggest looking into DevExpress' control sets.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.
-
You'll need a third party grid to do this. The DataGridView in the .NET Framework does not support this. I suggest looking into DevExpress' control sets.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008actually if I understand what he means with hierarchical gridview it is possible although not easy. have a look at this http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft. But as you suggested the DevExpress controls are easyer to use and have alot more options.
-
actually if I understand what he means with hierarchical gridview it is possible although not easy. have a look at this http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft. But as you suggested the DevExpress controls are easyer to use and have alot more options.
Tom deketelaere wrote:
I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft.
Yeah, I couldn't figure that one out either, and here we are, on the cusp of .NET 4.0 and we still can't do it easily.
Tom deketelaere wrote:
But as you suggested the DevExpress controls are easyer to use and have alot more options.
It's much easier to do it with a control that was designed for it from the start than to hack it together.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Tom deketelaere wrote:
I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft.
Yeah, I couldn't figure that one out either, and here we are, on the cusp of .NET 4.0 and we still can't do it easily.
Tom deketelaere wrote:
But as you suggested the DevExpress controls are easyer to use and have alot more options.
It's much easier to do it with a control that was designed for it from the start than to hack it together.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Dave Kreskowiak wrote:
It's much easier to do it with a control that was designed for it from the start than to hack it together.
True. I actually started to make my own custom grid control (based on the standerd gridview ofcourse), I didn't get far. I'v been using the devexpress controls for olmost a year now and I have to say there very easy to use (once you understand how they work) and very extended, I fear I'v only scratched the surfice.