Updating DataGridView from another Form using BackGroundWorker

Posted by FezKazi on Stack Overflow See other posts from Stack Overflow or by FezKazi
Published on 2010-06-01T06:59:23Z Indexed on 2010/06/01 7:03 UTC
Read the original article Hit count: 494

Filed under:
|
|
|

Hi!

I Have one Form (LoginForm) which has a Background Worker Monitoring a database for new entries.

Then I have another Form (AdminForm) which I need to signal to update its datagrids whenever new data is available.

I could poll the database in the AdminForm too, but considering that LoginForm is already doing some polling, which can be costly, I just want to signal AdminForm to update the DataGridViews with the new data.

You may ask, why is LoginForm doing the polling when youre showing the stuff in the AdminForm? Well, LoginForm is actually processing the data and sending it over the Serial Port :$ heheh. I want it to be able to process the data without having an administrator logged in all the time.

© Stack Overflow or respective owner

Related posts about c#

Related posts about form