[MonoDevelop] Howto use Treeview Cell Data Function
John Luke
jluke@users.sourceforge.net
Sat, 24 Jan 2004 12:22:12 -0500
On Sat, 2004-01-24 at 20:57 +1100, John BouAntoun wrote:
> Hey guys,
>
> I have treeview that has a liststore of complex objects.
>
> I wanted to map some text cell renderers to different string properties
> of the complex object.
>
> I figured out that I need a CellDataFunction and have the signature
> correct, but I have no idea what to do inside the CellDataFunction to
> get it to render properly.
>
> Some help (an example even) would be much appreciation.
>
> For simplicity's sake lets just say the complex object looked something
> like this
>
> class complexObject {
> string firstString {get;};
> string secondString {get;};
> }
>
> how would I get those two properties to render in the separate columns
> of a treeview?
>
You could just make two columns and add firstString to column 0 and
secondString to column 1.