views:

13

answers:

2

it happens when i change the DataSource.
i have checked everything(stack traces, all exception information, datasources, grids, all the threads, etc) i have also write lots of diagnostic code(+3000 line)
it seems to be a virus, it is going to destroy everything in my app.
all grids are going to have the very same error.(while i have not changed any of the code).wtf .

it makes my datagridviews to have an red X on them.

A: 

It looks like a GDI+ issue.

thelost
yes, it happens more when i refresh the datasource more quickly,but i don't have ANY graphics in my application.
Behrooz
+2  A: 

The red X is .net's way of showing that an error occured in the drawing of the control code.

See these articles 1, 2, 3 for some hints on the possible causes/what you can do about it (if those links don't help googleing "datagridviews have an red X" brings up a lot of reading material).

Ando
+1 for good links.
Behrooz