[Gtk-sharp-list] Treeview, delete the selected row (can't get it done :( )

countcb count.cb at gmx.net
Fri Jun 27 07:01:34 EDT 2008


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.



More information about the Gtk-sharp-list mailing list