I got a collection bind to a listview. This collection gets items added every 4-5 seconds and new items will automatically be added in bottom of the listview. So if you gonna see newest items then you need to scroll down to the bottom.
My question is: is it possible to like reverse the listview so the new newest items are on top and oldest items in bottom ?
Thanks
Use Insert
instead of Add
:
collection.Insert(0, newItem);
Note that it's slower than Add
since it has to shift all items by 1 position. It might be an issue if the list is very big.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With