Gtk treeview retrieve data

Hi there,
I have a Gtk Treeview with a list store and a text entry nearby. I have added some data in the list store and i am successful in displaying those data as table in the treeview. So when a row of treeview is clicked, i need to get the data of a column in that row and enter it in the text entry. I tried with GTK Selection but i am getting clicked event but the iter of the list store is not pointing the row that i click. So can you please tell me how to get data from treeview based on selection.
Thank you,
Regards,
Nishanth

I can not remember currently. I think there is no real difference between gtk2 and gtk3. For GTK2 it was described in the book of A Krause. When You do not haven that book, you may read

http://scentric.net/tutorial/sec-treemodel-data-retrieval.html

https://en.wikibooks.org/wiki/GTK%2B_By_Example/Tree_View/Tree_Models#Retrieving_Row_Data

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.