Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a TreeGridColumn in a DataGrid.All the nodes in the tree an initially expanded.

- Parent
- Child 1
- Child 2
- ....

When the expand/collapse button is pressed it causes all the child nodes to go directly under the parent node.
-+ Parent
- Child 1
- Child 2
- ....
The Child Nodes are not hidden which i find very strange? Then an error message appears;
C#
"Row is NOT in the grid"
TreeGridView line 411
TreeGridNode line 393
TreeGridCell line 282

Im adding the nodes programatically like this;
C#
TreeGridNode node = myDGV.Nodes.Add("CLASS 1-A", @"", @"");

     node.Expand();
     node.ImageIndex = 0;
     node.DefaultCellStyle.Font = boldFont;
     node = node.Nodes.Add(@"JOE BLOGGS", "HIGH", @"16");
     node.ImageIndex = 0;
     ....

Iam using this project for reference ;TreeGridView

Its an old project, im just wondering if anyone has had the same problem as me.

Thanks

What I have tried:

I have tried changing the indent value. Removing the initial expanding of all nodes.Creating my own project ,reducing the number of child nodes, removing/adding the reference, changing the column width.
Posted
Comments
Sergey Alexandrovich Kryukov 24-May-16 14:49pm    
I don't know such class as TreeGridColumn which would work with .NET FCL DataGridView. Do you have a link?
—SA
BEBE2011 25-May-16 4:04am    
If you click on the link above "TreeGridVie"
Sergey Alexandrovich Kryukov 25-May-16 9:55am    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900