Odd repaint(?) problem

B

BC

I have a Dot Net 2.0 Winforms app with a rather simple bound datagridview on
it. For lack of a better term, it seems to go into fits of repainting from
time to time. Seems almost random. I've been through the code looking for
anything that might be causing an infinite loop but I think I've eliminated
all the possibilities. I may even be imagining it.

Aside from the possibility of a defective LCD, can any one think of anything
else I might be overlooking?
 
D

DH

BC said:
I have a Dot Net 2.0 Winforms app with a rather simple bound datagridview on
it. For lack of a better term, it seems to go into fits of repainting from
time to time. Seems almost random. I've been through the code looking for
anything that might be causing an infinite loop but I think I've eliminated
all the possibilities. I may even be imagining it.

Aside from the possibility of a defective LCD, can any one think of anything
else I might be overlooking?
I had a simalar problem, which was caused by the events. I have a custom
datagridview which supports a couple of differnt rhings such as showing
row numbers, undo/redo and such. My problem was one of the event
handlers i had created called paint, then the base, which in return
ended up calling that event handler again.
If yours is not a custom datagridview i would suggest running it in the
debugger and as soon as this happens 'pause' it and look at the
callstack and where in your code you are and try and go from there
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top