miguel28 / imagelistview

Automatically exported from code.google.com/p/imagelistview
0 stars 0 forks source link

Inserting items while groups are displayed is slow #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Inserting items while groups are displayed causes the items to be sorted from 
scratch. This happens for each new item.

Original issue reported on code.google.com by oozcitak on 6 Apr 2011 at 10:36

GoogleCodeExporter commented 9 years ago
This will take some time to fix. Current workaround is to temporarily disable 
grouping while inserting items:

// Disable groups
myImageListView.SuspendLayout();
SortOrder oldGroupOrder = myImageListView.GroupOrder;
myImageListView.GroupOrder = SortOrder.None;
// Insert items
myImageListView.Items.AddRange(manyitems);
// Enable groups
myImageListView.GroupOrder = oldGroupOrder ;
myImageListView.ResumeLayout();

Original comment by oozcitak on 6 Apr 2011 at 10:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r637.

Original comment by oozcitak on 27 Apr 2011 at 9:31