i am using a listview on my admin form to see those who are logged in. so i have a table which captures users logging in and logging out. this table data is reflected onto this listview. but i want the listview to refresh itself as soon as the user has logged out. this way the admin doesn't have to keep pressing refresh.so i want to know if there is way to refresh the listview on database update.

Recommended Answers

Easiest way is using timer control.

Jump to Post

All 2 Replies

Easiest way is using timer control.

can you please tell me , this listview is also at the same form where you are inserting some data in your db , if yes then just place the same code which you used to show values in your listview just after the code you are using to save data in you db . this will also perform same action , if you using timer control then you system will take load and always busy to check weather the records are update or not .


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.