I have a scrollable DataGridView with text and images. But if it contains more rows then fit the screen scrolling doesn't work properly. If you scroll the part of the text that should become hidden remains on top of the new text. So the top and the bottom of my DataGridView contains double text written on top of each other. The middle part is fine, though.
After the creation of the view I resize both the textsize and the cell size. That might be the problem. I honestly don't really know where to start loking for a solution. Only thing I can come up with is to try a repaint on a scroll event. I've tried this similar issue, but it didn't fix it for me. I also see that a lot of people have issues if they paint in the datagridview, but I don't (So please don't mark this as a duplicate of one of those issues). I didn't write this part of the code, but the picture is just passed on by setting it in DataGridViewCellFormattingEventArgs.Value in dgvAlarms_CellFormatting.
When I tried making it DoubleBuffered everything except the headers and the images (that I cut out in the last picture) in the DataGridView turned black like this:
Thank you for your help.