joncodo
joncodo

Reputation: 2328

Update UI while method is executing in main thread

I have a method that takes 30 seconds to run and updates a gridview after the 30 seconds is up. After 10 seconds, it receives the first item in the grid. Also, after 20, the second item and after the 30 seconds, the final item is received.

I want the grid to be updated every 10 seconds in the UI. Is this possible and how can it be done.

Thank you very much.

Upvotes: 0

Views: 136

Answers (1)

FIre Panda
FIre Panda

Reputation: 6637

You could use a TImer control that would fire an event after whatever time you set to its Interval property. In that event handler, you could call your method or do whatever you want.

Upvotes: 2

Related Questions