When I put my computer to sleep and wake it back up again I am finding that there are ghost entries in my DataGrid. Sometimes there is only one ghost entry like in my screenshot I captured of the problem. Sometimes there is more than one ghost entry as I have seen up to three ghost entries while I have been troubleshooting this problem. I have tried to resolve the issue myself by placing a dataGridView1.Refresh() in the PowerModeChanged event on resume as well as in the event for the taskbar icon so when the user double clicks the icon to make the form visible the DataGrid gets a refresh there to. Closing the application entirely and reopening it I find that the ghost entry is gone. Any information on this would be greatly appreciated. Screenshots I am attaching:
Thank you for posting...