G
Guest
I have a ListView that I am showing in 'Detail' mode. The list contains about 740 items and I have a button that tries to go through all items in the list and select them and change the image icon. This seems to take over a minute or two just to do something like
foreach(ListViewItem item in listView.Items
item.Selected = true
item.ImageIndex = 1
Does anyone have any suggestions on how to speed this up? I would hate to guess how long it would take if I had 7000 items in the list. What is taking so long? I have tried to suspend the layout as is done during the Windows initialization but this did not seem to have any effect
Thank you for your suggestions
Kevin
foreach(ListViewItem item in listView.Items
item.Selected = true
item.ImageIndex = 1
Does anyone have any suggestions on how to speed this up? I would hate to guess how long it would take if I had 7000 items in the list. What is taking so long? I have tried to suspend the layout as is done during the Windows initialization but this did not seem to have any effect
Thank you for your suggestions
Kevin