G
Guest
I am trying to update a DataGrid by binding to a dataset located in another
class.
In this class, I subscribe to a Query Notification using a SqlDependency.
In the SqlDependency's OnChange event, I attempt to merge a temporary dataset
FILLed with a DataAdapter with a private dataset of the class. It performs
well enough until the OnChange event fires at an increased rate, when I see
the "DataTable internal index is corrupted: '13'" exception arise. I am
guessing my problems have to do with multiple threads attempting to change
the local dataset at the same time. I've tried using a lock statement to
lock the dataset around any operations with the dataset to no avail. Can
someone offer me an approach to this issue?
Thanks,
Chris
class.
In this class, I subscribe to a Query Notification using a SqlDependency.
In the SqlDependency's OnChange event, I attempt to merge a temporary dataset
FILLed with a DataAdapter with a private dataset of the class. It performs
well enough until the OnChange event fires at an increased rate, when I see
the "DataTable internal index is corrupted: '13'" exception arise. I am
guessing my problems have to do with multiple threads attempting to change
the local dataset at the same time. I've tried using a lock statement to
lock the dataset around any operations with the dataset to no avail. Can
someone offer me an approach to this issue?
Thanks,
Chris