[Gtk-sharp-list] Accessing values from TreeView with
04 Feb 2003 13:22:43 +0100
I have poked around GTK+ a bit (I have never coded GTK+) and found the
Seems like ordinary GTK+ has a suitable function:
That would be represented in GTK# by TreeView.GetSelection() or
TreeView.GetSelected() or something like that?
But there doesn't seem to exist such a function (yet?), so is it
possible to do what I want to do now using GTK#? Does anybody know of
any GTK# application that does this?
On Fri, 2003-01-31 at 11:38, Christian Rudh wrote:
> I am using GTK# for a project at my university and I really like it. But
> I have stumbled upon a problem I can't seem to solve by going through
> all source of gtk# applications I have found or by reading the
> So I'll try here:
> I have a TreeView that uses a ListStore:
> Store = new ListStore((int)GLib.TypeFundamentals.TypeString,
> tv = new TreeView(Store);
> And I have added two columns to the TreeView and made them use the two
> positions from the ListStore, so when I do this:
> Store.SetValue(iter, 0, new GLib.Value ("column0"));
> Store.SetValue(iter, 1, new GLib.Value ("column1"));
> the walues appear in the TreeView.
> Now to the question: How can I access these values by single- and
> doubleclicking in the appropriate cell?
Christian Rudh <firstname.lastname@example.org>