Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Delete node from a databound tree
posted

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?

Parents
No Data
Reply Children
No Data