简体   繁体   中英

How do I Refresh Data inside the ListView on my form everytime the time ticker event occurs C#

I am currently stuck trying to get the Listview box to refresh to show updated balances. Would anyone know how I can refresh the listView box with all the data inside it every time the timeticker event occurs so that the balances get updated ? I have tried listview.Refresh. That doesnt work.

Thanks

First of all, assuming you are not using databinding, learn a little bit about it as it seems most relevant in your simple case: DataBinding Tutorial

Once you bind your ListView to the source, attach a handler ( Event Handler Tutorial ) for the timeticker and call Refresh() on the ListView inside your timeticker handler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM