[Gtk-sharp-list] Adding a Lot of Rows into a TreeView

David Anes david.anes at gmail.com
Mon Mar 5 15:32:36 EST 2007


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 <klessou at gmail.com>:
>
> 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  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070305/927173b5/attachment.html 


More information about the Gtk-sharp-list mailing list