protected void HandleCellRendererTextEditableEdited(object o, EditedArgs args) { TreeIter iter; if (treeModel.GetIter(out iter, new TreePath(args.Path))) { treeModel.SetValue(iter, CursorColNr, args.NewText); ScrollTo(iter); } }
public static void SetModelValue(Gtk.TreeModel store, Gtk.TreeIter it, int column, Type type, object value) { if (type == typeof(ObjectWrapper) && value != null) { store.SetValue(it, column, new ObjectWrapper(value)); } else if (value is string) { store.SetValue(it, column, (string)value); } else { store.SetValue(it, column, value ?? DBNull.Value); } }