I have a tree databound to a DataSet.
When the user selects the Delete command (in a toolbar), I am trying to delete the selected node. So, I execute the following code:((DataRowView)treeHierarchy.ActiveNode.ListObject).Row.Delete();
The row dissappears from the treeview as expected. But, later whenever I attempt to commit the changes to the DataSet to the database, the DataRow is "Unchanged". I noticed that after the statement above is executed, the RowState of the DataRow is still "Unchanged".
What am I missing here?
Yep, I am retarded. I was looking at the wrong row.