i have 2 threads one updates a dataset so information on a primary gridview can be updated and viewed while other data loading occurs.
the 2nd thread updates the same dataset so that information on a secondary gridview is loaded. the problem is that the while loop in the threads skips out updating the dataset. will loop (like) 9 times with out actually updating the ds.
we are grabing information from a wcf service using paging fill. and to get the bindings to controls to stay we have to pass it a temporary ds by ref and then merge that into the forms base dataset. everytime we loop we clear the pertinent datatable in the temporary ds to get ready for a new page of data. this seems to be the issue. sometimes the threads while loop will go back through and hit that before the merge actually occurs, thereby erasing the data that we need to proceed.
hopefully someone can help, and i know that this hasn't been explained the best so let me know what you need.