Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a DataGridView on my form which is plain .net winform control (not customized).
Just above the grid I have a Combobox control.

Grid is populated with some data bound to a BindingSource.

When user expand the combo-box, and selects an item, the visible combo-box list disappears. At this point, a snapshot of combo-box list remains painted on top row in DataGridView.

I don't know if this information is enough to describe the issue. I am not finding an option to attach snapshots of the form, so that problem would be more clear. If any such option is available on codeproject, please let me know, I will upload the snaps.

Also, it was working perfectly just an hour ago.

What I have tried:

1. Tried debugging DataGridView's painting event, but found no issues.
2. Set double buffered to true, but no help.
3. Reset binding source attached to datagridview, again no help.
Posted
Updated 8-Oct-18 4:25am

1 solution

Check the various paint event handlers for your DGV - I have no idea which ones you are handling, but there are quite a few candidates.

I've never seen a DGV messed up by and external control unless there is a mistake in a paint handler.
 
Share this answer
 
Comments
Member 11040029 8-Oct-18 11:02am    
yeah right Griff, it's never messy. I am not handling any paint event handlers. Infact not handling any event for the grid. It is just tied to binding source.
OriginalGriff 8-Oct-18 11:14am    
Strange. Two things: How up to date are your graphics drivers? (Grasping at straws here.) And have you tried Invalidating the DGV?
Member 11040029 9-Oct-18 6:19am    
Graphics are up to date. Yes tried Invalidating...didnt work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900