On 3/5/07, KLessou <[EMAIL PROTECTED]> wrote:

Thx,

Can I create a temporary TreeStore to keep the possibility to select old
TreeIter during the work ?

Like this :

TreeStore tmpstore = new TreeStore (store);

_treeview.Model = tmpstore;

while (xxx)
{
   ...

    store.Append (out iter);
    store.SetValue (iter, 0, imagePreview);
    store.SetValue (iter, 1, description);
}

_treeview.Model = store;

On 3/5/07, David Anes <[EMAIL PROTECTED]> wrote:
>
> Hi Klessou.
>
> Detach the model from the TreeView, add all rows, attach the model
> again. This will prevent relayout of the treeview on every row insertion.
>
> Cheers,
> David Anes.
>
> 2007/3/5, KLessou <[EMAIL PROTECTED]>:
> >
> > Hello,
> >
> > I have to insert a rows into a TreeView. Long time even on powerful
> > machines once the model contains more than a couple of thousand rows, the
> > insertion rate decreasing exponentially.
> >
> > Is there any solution to increase the insertions' rate ?
> >
> > --
> > ~~~~~
> > | klessou |
> > ~~~~~
> > _______________________________________________
> > Gtk-sharp-list maillist  -   [email protected]
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> >
>


--
~~~~~
| klessou |
~~~~~




--
~~~~~
| klessou |
~~~~~
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to