This happens only if there are no rows added to the grid, see code below:
TreeViewColumn col1 = new TreeViewColumn("Description");
this.treeTest.Columns.Items.Add(col1);
//will not give an exception if these lines are uncommented
//TreeViewNode node = new TreeViewNode("test");
//this.treeTest.Rows.Items.Add(node);