The only problem i can imagine is that your assinging a TreeModelFilter or a
TreeModelsort to tv_klanten.Model.

Then the selction you get when you click on the tree will be an iterator for
THAT model. NOT for your listStore. Thats why your iter is not valid.

If you do like I assume you have to change the call

listStore.Remove(ref iterSelected); 
to
listStore.Remove(ref subModel.ConvertIterToChildIter(iterSelected)); 

where "subModel" is the model you assigned to tv_klanten.Model

-- 
View this message in context: 
http://www.nabble.com/Treeview%2C-delete-the-selected-row-%28can%27t-get-it-done-%3A%28-%29-tp18144085p18152742.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to