المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Backgroundworker



C# Programming
09-19-2009, 07:11 AM
Hi,
There is a button on a win form which populates a gridview control with data.
to prevent the UI being locked I am using the Backgroundworker.
The application does not get locked when the data is being retrieved, but it does get locked when inside the event "backgroundWorker1_RunWorkerCompleted" on line:
dataGridView.DataSource = e.Result;

Any thoughts on this please?
Thanks