J
Jure Bogataj
Hi all!
I have a problem (performance issue) with listview. I have implemented an
ItemSelectionChange on my listview and put some code in it (I build some
toolbar based on selection and update info in statusbar). When selecting one
item (clicking on listview) it works fast, without noticing. However if
selecting multiple items with SHIFT (approx. 500 items) or selecting with
mouse, for each item selected through all listview an event
(ItemSelectionChange) gets called. And this is what slows down my app (the
code running 500 times instead of one time - OnSelectionEnd or sth.). Is it
possible to have an event or simulate it only when selection is finished
(e.g. when all 500 items are selected) not for each and every one?
Thanks in advance!
Best regards,
Jure
I have a problem (performance issue) with listview. I have implemented an
ItemSelectionChange on my listview and put some code in it (I build some
toolbar based on selection and update info in statusbar). When selecting one
item (clicking on listview) it works fast, without noticing. However if
selecting multiple items with SHIFT (approx. 500 items) or selecting with
mouse, for each item selected through all listview an event
(ItemSelectionChange) gets called. And this is what slows down my app (the
code running 500 times instead of one time - OnSelectionEnd or sth.). Is it
possible to have an event or simulate it only when selection is finished
(e.g. when all 500 items are selected) not for each and every one?
Thanks in advance!
Best regards,
Jure