I need to get node position in the Gtk.TreeView
. I'm able to get the row and what the user changed, but I have to hardcore the column, is there any way how to get it?
Here's the code:
private void artistNameCell_Edited (object o, Gtk.EditedArgs args)
{
Gtk.TreeIter iter;
musicListStore.GetIter (out iter, new Gtk.TreePath (args.Path));
Song song = (Song) musicListStore.GetValue (iter, 0);
song.Artist = args.NewText;
}
It's from here http://www.mono-project.com/GtkSharp_TreeView_Tutorial , it's the editable text cells section. In the code they just select column number 0:-/, but I need whatever column user clicks. Respectively the exact Node position something like node[row,column]
, now I have just node[iter,0]
.