[Gtk-sharp-list] visible cellrenderer

Lluis Sanchez lluis at ximian.com
Mon May 28 05:59:03 EDT 2007


El dj 24 de 05 del 2007 a les 09:56 -0400, en/na Vladimir Giszpenc va
escriure:
> Hi,
> 
> There are examples on making a column or a row visible/not visible.
> Is there a way to hide a cellRenderer for a given cell/node?  I have
> check boxes that I would like to display on root rows, but not on
> child rows.
> 
> V  [ ]    pic      name
>               pic    name
>               pic    name
> |>  [x]    pic      name
> 
> Note that the toggle is not visible above in the child rows.  How
> would I accomplish this?  The hiding is what I am having trouble with.

You only have to bind the "visible" property of the cell renderer to a
boolean data column, and set it to false on the child rows.

Lluis.




More information about the Gtk-sharp-list mailing list