[Gtk-sharp-list] Deleting a row from a Tree
Mike Kestner
mkestner@ximian.com
Fri, 09 Jul 2004 10:17:50 -0500
On Thu, 2004-07-08 at 16:25, Christian Ziegner wrote:
> The button I have tried with:
>
> void AktionLoeschen_clicked (object o, EventArgs args)
> {
> Console.WriteLine("Aktion loeschen");
> AktionTree.RemoveColumn(AktionTree.Selection.GetSelectedRows(out
> store6));
> }
You want something like:
TreeIter iter;
TreeModel model;
if (AktionTree.Selection.GetSelected (out model, out iter)) {
TreeStore store = model as TreeStore;
store.Remove (ref iter);
}
--
Mike Kestner <mkestner@ximian.com>