If you have a list of classes that changes there values all the time, OLV (ObjectListView) will refresh only if you click, select an item, focus, scroll... How to make OLV to STOP refreshing, and apply RefreshObjects() manually once in minute for example?
Begin/EndUpdate() stops OLV from drawing, so if you scroll, it does not show items below. That's bad for me.
I found Freeze() and Unfreeze() functions, but I did not notice any effect from them.
Another thing: if you have a lot of columns and items in OLV, every time you scroll, it does recheck and refresh item values, that does not make sense, if values are not changing. If forcing to stop OLV from refreshing, cud this increase speed?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are using a FastObjectListView, then it always gets information from the model classes on every redraw. That is what enables it to work so quickly.
To behave as you requesting, you would be better using a plain ObjectListView.
Alternatively, keep your FastObjectListView and give it a deep copy of your model objects on each update.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
If you have a list of classes that changes there values all the time, OLV (ObjectListView) will refresh only if you click, select an item, focus, scroll... How to make OLV to STOP refreshing, and apply RefreshObjects() manually once in minute for example?
Begin/EndUpdate() stops OLV from drawing, so if you scroll, it does not show items below. That's bad for me.
I found Freeze() and Unfreeze() functions, but I did not notice any effect from them.
Another thing: if you have a lot of columns and items in OLV, every time you scroll, it does recheck and refresh item values, that does not make sense, if values are not changing. If forcing to stop OLV from refreshing, cud this increase speed?
Thank you!
If you are using a
FastObjectListView, then it always gets information from the model classes on every redraw. That is what enables it to work so quickly.To behave as you requesting, you would be better using a plain
ObjectListView.Alternatively, keep your
FastObjectListViewand give it a deep copy of your model objects on each update.