[Gtk-sharp-list] treeview search (help)

Alvaro A. Ramirez alramire@syr.edu
Tue, 24 Feb 2004 15:01:22 -0500


ok. so far i get the following. i manage to almost traverse through all my rows in the treeview. however, because the while look calls iternext, i never get the first row. i oculd work around this, but i'm just wondering if there is a preffered way. 

regards, 

alvaro


Gtk.TreeIter TreeIterTemp;
this.ListStoreTemp.GetIterFirst(out TreeIterTemp);
string s;
while(this.ListStoreTemp.IterNext(out TreeIterTemp))
     {
               s=(string)this.ListStoreTemp.GetValue(TreeIterTemp,0);
                Console.WriteLine(s);
     }


On Tue, 2004-02-24 at 05:04, Alvaro A. Ramirez wrote:
> hello everyone. i am slightly confused with the treeview widget. i have
> been able to construct my treeview, as well as sort it, but unable to
> search through it. how may i traverse to find a particular row? i am
> using a treeview with a liststore. it has about 4 columns. a small code
> snippet, sample, or point in right direction would be great. thanks. 
> 
> regards, 
> 
> alvaro  
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>