I've a problem i've been struggling with for some days.
I've got a DataGridView, and I'm using the RowPrePaint event to add a custom row by drawing a string and a background. So far,so good.
The problem comes when i use horizontal scrolling. Moving it to the right is not a problem, the string i draw just hides. But when i move it backwards, the string is not drawn or is partly drawn causing strange graphics artifacts.
I've solved it partly by subscribing to the scroll event and invalidating the grid when the scroll is horizontal and moving from right to left, but it's slow and cause some flickering.
Anyone knows how to solve this problem or where i could find some working example?