c# - Mono getting node position in TreeView -


i need node position in gtk.treeview. i'm able row , user changed, have hardcore column, there way how it?

here's 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 here http://www.mono-project.com/gtksharp_treeview_tutorial , it's editable text cells section. in code select column number 0:-/, need whatever column user clicks. respectively exact node position node[row,column], have node[iter,0].

i ran sample program gtkdemo comes mono framework on windows (the samples directory), , edit treeview editable cells samples, paste code handles event,

private void textcelledited(object o, editedargs args) { treepath path = new treepath(args.path); treeiter iter; store.getiter(out iter,path); int = path.indices[0]; item foo = (item)articles[i]; foo.product = args.newtext; store.setvalue (iter, (int) column.product, foo.product); } 

where store liststore. recommend see full source code, comes mono framework windows under [program files(x86)]\mono-2.10.8\samples\gtk-sharp-2.0\gtkdemo.

i hope can helps you.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -