[Gtk-sharp-list] TreeView column with different CellRenderers

Nicolas Krzywinski opensource at site7even.de
Sat Aug 25 18:36:54 UTC 2012

Assign cellrenderers of your choice to the value column and use TreeCellDataFunc (property SetCellDataFunc) on the column to display the data you want, including the possibility of data conversion within the TreeCellDataFunc callback (so you may only need string cellrenderer and convert bool values to any string representation you want from within this callback function)

Am 01.08.2012, 14:44 Uhr, schrieb Marcin S <msporysz06 at gmail.com>:

> Hello,
> In mono TreeView tutorial its stated that one column could have
> multiple cell renderers types - it is just what i need, but can't find
> any example of such usage.
> I want 2 column TreeView, first is name and second is value which can
> be of type string or bool.
> But I'm not sure how to deal with model types. Any hints on that matter?
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

www.site7even.de | www.nskcomputing.de

More information about the Gtk-sharp-list mailing list