title: How to use threading to update a DataTable which tends to change dynamically by Main Thread?
body: <p>There is a dataTable which used to filled on click of a button say 'Search'. On this click when dataTable filled with data. I am creating a new thread which updates at dataTable data. But User again clicked on search button. Now that dataTable again filled with New data while a thread was already updating that dataTable. On Search click the code again creates a new thread and starts updating that changed dataTable. Here I am having error as: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on. Please suggest a solution. Thanks</p>