Dec
10
Written by:
Angelo
12/10/2008 10:17 PM
I've started to enhance the TreeGridView from Mark Rideout's
blogNow I've quite finished the work:
- Krypton layout and color schemes support
- datasource support
- grouping by specific column
- true hierarchical display of data (using id and parentid column names, id = parentid for parent nodes)
- grouping level blocked on the first level (not for hierarchical)
- custom parent and childs images
- ...
here you'll find some screen shots:
Hierarchical from DataSource:

Normal DataBinding:

Grouped by column 4:

this is an exemple how to populate and set properties to the control:
[code]
private void toolStripButton5_Click(object sender, EventArgs e)
{
//clear the things
treeGridView1.Nodes.Clear();
treeGridView1.Columns.Clear();
//set some properties
treeGridView1.IsOneLevel = toolStripButton4.Checked; //not used in hierarchical
treeGridView1.ImageIndexParent = 0;
treeGridView1.ImageIndexChild = 1;
treeGridView1.IDColumnName = "ID";
treeGridView1.ParentIDColumnName = "ParentID";
treeGridView1.UseParentRelationship = true;
//bind data
treeGridView1.DataSource = dtSource; //must be a DataTable
}
[/code]
Download the code
>here<Angel
24 comment(s) so far...
Re: Hierarchical TreeGridView
Does it support Drag'nDrop?
By Robert on
1/29/2009 3:38 PM
|
Re: Hierarchical TreeGridView
Does it support Drag'nDrop?
By rambovn on
1/27/2009 11:36 AM
|
Re: Hierarchical TreeGridView
I would be interested in seeing the improvements you've added to this control. But the sample file you've got linked does not contain the control and will not run/compile properly. Could you please check the file and put in the missing files, thank you. Looking forward to seeing the changes you've made.
By Kwan on
1/29/2009 3:37 PM
|
Re: Hierarchical TreeGridView
Drag 'n drop: I'll look at it Source: yes, send an email to infoATadvancedcomputingDOTch and I'll send you!
Regards // Angel
By Angelo on
2/5/2009 3:18 PM
|
Re: Hierarchical TreeGridView
Hi Angelo,
Why not share the code for the treegridview, as you have taken the code from someone else already? For example put it on CodePlex.com and have other people develop on it, so that it will be improved more. Maybe offer it as a component to Ascend.Net?
Regards Niels
By Niels on
2/17/2009 10:19 AM
|
Re: Hierarchical TreeGridView
Hi Niels, you're right... this is the link.
Regards /// Angelo
By Angelo on
2/17/2009 10:25 AM
|
Re: Hierarchical TreeGridView
Hi Angel,
I m a newbie to datagrid component.. does ur hierarchical treegridview able to enter text and update the records that are displayed?? how can i edit the code to be able to update the content of the records?
many thanks in advance!!! lynn
By lynn on
7/8/2009 3:19 PM
|
Hierarchical TreeGridView
Hi All, I want to use this grid as Master and Child Tables. I have two query first one is for parent grid and second is based on parent. Please suggess me how can i implement this on treegridview.
Thanks Vinod Kumar
By Vinod Kumar on
7/7/2009 2:25 PM
|
Re: Hierarchical TreeGridView
I need this grid as Master Child grid view means I am above to do it but problem is comlumns. If i have more columns of child grid than master grid. I am unalble to do this. please help me someone.
By Vinod Kumar on
7/8/2009 3:19 PM
|
Re: Hierarchical TreeGridView
Anyone has interest in a bindable treegrid, please tell me by email in elgenio007@yahoo.es I work in this treegridview with a bindable datasource
By Javier on
8/26/2009 10:20 AM
|
Re: Hierarchical TreeGridView
Javier, is it possible to have the updated code? Regards // Angel
By Angelo on
8/26/2009 10:21 AM
|
Re: Hierarchical TreeGridView
hi Angelo
me too is very interested at TreeGridView from Mark Rideout's blog
yet i need a VB.net Version of it. they say make a dll out of it the reference in vb.net but i got an error
* Visual Styles-related operation resulted in an error because no visual style is currently active.
help me if you can i'm feeling down :) i badly need it on my VB.net project... deadline is fast approaching :(
contact me at ytters_chadz@yahoo.com
By SAGA on
3/4/2010 12:31 PM
|
Re: Hierarchical TreeGridView
hi Angelo
me too is very interested at TreeGridView from Mark Rideout's blog
yet i need a VB.net Version of it. they say make a dll out of it the reference in vb.net but i got an error
* Visual Styles-related operation resulted in an error because no visual style is currently active.
help me if you can i'm feeling down :) i badly need it on my VB.net project... deadline is fast approaching :(
contact me at ytters_chadz@yahoo.com
By SAGA on
3/4/2010 12:30 PM
|
Re: Hierarchical TreeGridView
Sorry for answer very slow. I can pass the updated code, but i don´t terminate, because i haven´t so much time. Some function don't work. How pass you the code?
By Javier on
11/23/2009 9:34 AM
|
Re: Hierarchical TreeGridView
thank's for the source code..., it realy usefull for me..
Thanks Thomas
By Thomas on
11/23/2009 9:34 AM
|
Re: Hierarchical TreeGridView
Does the sample application include the control? Why do I need krypton tools? Can you please provide a link to download the actual control?
By Jack on
12/28/2009 2:11 PM
|
Re: Hierarchical TreeGridView
Look here Regards /// Angel
By Angelo on
12/28/2009 2:12 PM
|
Re: Hierarchical TreeGridView
Your code does not build. Can you please share the code with me at illuminate0201.at.yahoo.co.uk
Thanks, Pallavi
By Pallavi on
3/4/2010 12:31 PM
|
Re: Hierarchical TreeGridView
Reference to ComponentFactory.Krypton.Toolkit is not found in the code base that you have shared. Could you please provide the code to allow data binding support to Mark's TreeViewGrid. I need to have DataSource support with the treeviewgrid. I would appriciate any help from you ..... Thanks! Pallavi
By Pallavi on
2/4/2010 11:49 AM
|
Re: Hierarchical TreeGridView
you can download it at: http://www.componentfactory.com Angel
By Angelo on
2/4/2010 11:50 AM
|
Re: Hierarchical TreeGridView
Funny how the code you linked is EXACTLY the same as the code from this project:
http://www.codeproject.com/KB/grid/hierarchgrid.aspx
Minus your Krypton stuff..
By McBuster on
3/4/2010 12:31 PM
|
Re: Hierarchical TreeGridView
I've written the code, giving credits to the author, and then published back ... What am I supposed to say? Maybe the guy on CP has not mentioned the second source ... Angel
By Angelo on
3/4/2010 12:33 PM
|
Re: Hierarchical TreeGridView
Sorry, i use vb.net not c# . Have you vb.net version. Or how use your dll to do , vb.net version thank you~~~
By alexlam999 on
5/17/2011 7:26 AM
|
Re: Hierarchical TreeGridView
Sorry, i use vb.net not c# . Have you vb.net version. Or how use your dll to do , vb.net version thank you~~~
By alexlam999 on
5/17/2011 8:54 AM
|