M
mahtan
Please help
I have the problem that when I change the data in a
Windows.Forms.DataGrid by a separate thread the following
Exception is thrown:
ThreadSystem.NullReferenceException in
system.windows.forms.dll
I can't catch this Exception and it only occurs when I
allow sorting in the grid and choose the changing column
to sort.
I tried several things like monitors, suspend layout etc.
but nothing helped.
In the Threads Window of Visual Studio I can see that
there is an extra thread with the highest priority. I
assume that this one do the sorting in the background and
causes this exception.
Is this a bug of the datagrid or not and has anybody a
suggestion to solve this problem?
I have written a small test application to reproduce this
behavior. If you are interested I can send it to you.
Thanks
Ben
I have the problem that when I change the data in a
Windows.Forms.DataGrid by a separate thread the following
Exception is thrown:
ThreadSystem.NullReferenceException in
system.windows.forms.dll
I can't catch this Exception and it only occurs when I
allow sorting in the grid and choose the changing column
to sort.
I tried several things like monitors, suspend layout etc.
but nothing helped.
In the Threads Window of Visual Studio I can see that
there is an extra thread with the highest priority. I
assume that this one do the sorting in the background and
causes this exception.
Is this a bug of the datagrid or not and has anybody a
suggestion to solve this problem?
I have written a small test application to reproduce this
behavior. If you are interested I can send it to you.
Thanks
Ben