I can not understand in GTK # how to get the selected tree element. My code example: Here I upload data to tvStock
Gtk.TreeViewColumn marketCol = new Gtk.TreeViewColumn ();
marketCol.Title = "Market";
tvstock.AppendColumn(marketCol);
Gtk.TreeIter iter = stockListStore.AppendValues ("Dax30");
stockListStore.AppendValues(iter, "Adidas");
stockListStore.AppendValues(iter, "Commerzbank");
iter = stockListStore.AppendValues ("Cac40");
stockListStore.AppendValues(iter, "Bnp Paribas");
stockListStore.AppendValues(iter, "Veolia");
iter = stockListStore.AppendValues ("FtseMib");
stockListStore.AppendValues(iter, "Fiat");
stockListStore.AppendValues(iter, "Unicredit");
tvstock.Model = stockListStore;
Gtk.CellRendererText marketNameCell = new Gtk.CellRendererText ();
marketCol.PackStart (marketNameCell, true);
marketCol.AddAttribute (marketNameCell, "text", 0);
In my OnTvstockRowActivated, how can I get the selected row? Thanks
source
share