« Return to Thread: Treeview, delete the selected row (can't get it done :( )

Re: Treeview, delete the selected row (can't get it done :( )

by countcb :: Rate this Message:

Reply to Author | View in Thread

The error message means, that the passed iterator is not valid for your listStore.
You can check this yourself with
listStore.IterIsValid(iterSelected);

It will return true if the iter is valid, false otherwise.

WHY it is not valid I can't see with the code you showd.
Can you show the line where you connect the OnSelectionChanged Method with the Changed Event?

 « Return to Thread: Treeview, delete the selected row (can't get it done :( )