Hi,

I just implemented this in a program I work on for the moment:

TreeIter iter = store.AppendValues (new_id, "", String.Format ("{0:N2}", 0), String.Format ("{0:N2}", 0), "");
       TreePath path = store.GetPath (iter);
       enhetspriser_treeview.ScrollToCell (path, null, true, 0, 0);

the code is cut'n'pasted right from my program, so you have to change it to fit your need!

/Fredrik

Xavier de Blas wrote:
Hello, i have a treeview inside a scrolledwindow both created in glade.
How do i automatically scroll the scrolled window when a new row is
added in the treeview and is not seen without manual scrolling?

It's for improving Chronojump usability. ah! Chronojump 0.43 was
released yesterday!
http://www.gnome.org/projects/chronojump

Sorry for my english, thanks

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



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

Reply via email to