[Gtk-sharp-list] FileOpenDialog?? - Get current Row?
Shaika Dzari
shaikadzari at gmail.com
Sat Jan 27 21:52:53 EST 2007
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:
http://www.mono-project.com/GtkSharp_TreeView_Tutorial
http://lists.ximian.com/pipermail/gtk-sharp-list/2004-April/003781.html
@+
More information about the Gtk-sharp-list
mailing list