[Gtk-sharp-list] How to count the number of selected rows in a TreeView

Томислав Марковски tome@users.ossm.org.mk
Mon, 09 Aug 2004 14:29:56 +0200

Raúl Moratalla wrote:

> Sorry, I have a treeview and I want to know the number of rows in all
> the treeview (not only the selected rows, sorry). 

Using int TreeStore.IterNChildren() function you can get the number in
the the current Iter position. Same goes if using the ListStore model.
Consult the docs for different overloads. http://www.go-mono.com/docs or
"monodoc" if you have it updated.