Updatating DataGrid From a BackGroundWorker

Posted by subbu on Stack Overflow See other posts from Stack Overflow or by subbu
Published on 2010-03-24T05:20:02Z Indexed on 2010/03/24 5:23 UTC
Read the original article Hit count: 225

Filed under:

I hava a Background Worker and a DataGrid in my c# Application. In do work of my Backgroundworker which will call an Api in my dlls which will enter some Data in a SQLite Database. After the Completion of my Api call I report a progress and In progress event of my Backgroundworker I get the contents from Db and assign it as a DataSource to my grid. I call same API in same backgroundworker. In the middle of processing my application crashes. But If I dont assign the dataSource in ProgressChanged my application doesnt crashes.

© Stack Overflow or respective owner

Related posts about c#