Le 22/04/2009 14:33, Kolhe, Jyoti B a écrit :
I'm extensively using ListView (several forms with different listviews
with thousands of items each) with Mono 2.4 under Fedora 11 Beta,
openSUSE 11.1 and Mono SVN on Ubuntu 9.04 RC. Performance if very good
and loading a listview with 5000 items will always take less than a
second, even on an old Athlon XP.
Did you get good performance by using BeginUpdate() and EndUpdate() calls on
the listview or even without them?
I always use BeginUpdate and EndUpdate. Usually, I also use the form's
SuspendLayout() and ResumeLayout() methods, like this:
<pre>
this.SuspendLayout();
MyListView.BeginUpdate();
MyListView.Items.Clear();
for(;;) {
ListViewItem Itm = MyListView.Items.Add(blah blah);
Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
Itm.SubItems.Add(blah blah);
}
MyListView.EndUpdate();
this.ResumeLayout();
</pre>
"this" beign the container form.
Hope it helps.
Regards,
Ernesto
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list