[Gtk-sharp-list] Deleting a row from a Tree

Davy Brion ralinx@gmail.com
Fri, 9 Jul 2004 17:17:24 +0200

On Thu, 08 Jul 2004 23:25:24 +0200, Christian Ziegner <cziegner@gmx.de> wrote:
> Unfortunately, this does not work at all. The mcs complains about bad
> arguments. Does anyone have an idea regarding my problem??? I'd greatly
> appreciate ANY help...

i use the following to remove a row from a treeview (using a liststore
instead of a treestore though but i guess it won't make a difference)

if ( mTree.Selection.GetSelected(out mTreeModel, out mIter) )
   mTree.Remove(ref mIter);

mTree is a TreeView, mTreeModel is a TreeModel and mIter is a TreeIter