Check out: bool Gtk.ListStore.IterParent (out TreeIter iter, TreeIter child);
-pete PS - 'monop' is a handy utility for just browing API (if not using completion from MD, etc). I did "monop Gtk.ListStore | grep TreeIter | less" to find the exact API for the above answer. On Tue, Feb 24, 2009 at 08:08:24AM -0800, Coral Lights wrote: > Hi: > Quickly using the example code from the Mono tutorials: > Gtk.TreeIter iter = musicListStore.AppendValues ("Dance"); > > musicListStore.AppendValues (iter, "Fannypack", "Nu Nu (Yeah Yeah) (double j > and > haze radio edit)"); > > > iter = musicListStore.AppendValues ("Hip-hop"); > > musicListStore.AppendValues (iter, "Nelly", "Country Grammer"); > > In my own project I understand how to grab the currently selected tree > row, but how can I also get the value for the parent? > Basically, like in this example if the user selected the row with the > value "FannyPack", I would also like to be able to get the parent > "Dance" value. Or, if "Nelly" is the row selected, I only want also > its parent's value "Hip Hop". > I've tried multiple methods, but to failure to just grab the single > parent node value. > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -- _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list