[Gtk-sharp-list] FileOpenDialog?? - Get current Row?

Duong Nguyen duongnguyen at mail.ru
Sun Jan 28 01:29:24 EST 2007

OK, it's greate. Thank you very much!

----- Original Message ----- 
From: "Shaika Dzari" <shaikadzari at gmail.com>
To: <gtk-sharp-list at lists.ximian.com>
Sent: Sunday, January 28, 2007 5:52 AM
Subject: Re: [Gtk-sharp-list] FileOpenDialog?? - Get current Row?

Le samedi 27 janvier 2007 12:38, Duong Nguyen a écrit :
> Hi,
> Thanks for your help and sorry for not having read carefully.
> I have once more question about Gtk.StoreList that bound to TreeView. How 
> to get the selected row of the StoreList?

Use an event on the treeview:

treeview1.Selection.Changed += OnSelectionEntry;

protected void OnSelectionEntry(object o, EventArgs args)
TreeModel model;
string test;

if (((TreeSelection)o).GetSelected(out model, out iter))
// Initiation des valeurs selon la sélection
test = (string)model.GetValue (iter, 0);

You can find information here:

Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com

More information about the Gtk-sharp-list mailing list