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;
"Row is NOT in the grid"
TreeGridView line 411
TreeGridNode line 393
TreeGridCell line 282
Im adding the nodes programatically like this;
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.