[Gtk-sharp-list] Remove all columns of a TreeView

Arthur Turrini atgnbk at gmail.com
Wed Aug 16 19:59:42 EDT 2006


Thank you!

It worked for me :)


[]'s


On Wed, 2006-08-16 at 15:33 -0700, Brad Taylor wrote:
> Hey,
> 
> > Is there any way to remove all columns of a TreeView in Gtk#?
> > 
> > I did a loop to append columns to my TreeView (I don't know who are
> > them), but I want to remove all of them after I use, so I can append new
> > ones to my (now) empty TreeView.
> 
> foreach (TreeViewColumn col in myTreeView.Columns) {
> 	myTreeView.RemoveColumn (col);
> }
> 
> should do it.
> 
> Hope that helps.
> 
> -Brad
> 



More information about the Gtk-sharp-list mailing list