Datagridview retains waitcursor when updated from thread

Posted by Apeksha on Stack Overflow See other posts from Stack Overflow or by Apeksha
Published on 2010-06-09T19:00:23Z Indexed on 2010/06/09 19:02 UTC
Read the original article Hit count: 147

Filed under:
|
|

I have a DataGridView control in my Windows Forms Application. I am adding rows to the grid using a background thread. I change the form's cursor to Waitcursor when the process starts and back to Default when it ends. This works well for the form, but not for the grid. When the form's cursor is changed back to default, the grid's cursor does not change, although the cursor over the rest of the form does.

Does this have anything to do with the fact that I am updating the grid from a background thread? (The cursor is being changed from the UI thread).

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about datagridview