Re: Variable number of columns in Gtk::TreeView
- From: Murray Cumming <murrayc murrayc com>
- To: Milosz Derezynski <internalerror gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Variable number of columns in Gtk::TreeView
- Date: Sun, 16 Mar 2008 14:10:46 +0100
On Sun, 2008-03-16 at 13:11 +0100, Milosz Derezynski wrote:
> Hey Pedro,
>
> The only viable solution with TreeView would be to create the max.
> number of columns beforehand and then hide or show them as appropriate
> (using text columns with cell-data functions).
>
> You can not add or remove model columns after the creation of the
> model.
If you want to add or remove columns to a model then you probably want
to show a different set of data. So you probably want to use a
_different_ model each time. And different view columns. This is what I
do in Glom.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]