First post, but long time browser :)
So here\'s my problem: Basically I have a datagridview that I am using to interact with the user. In all of the rows, there is an
Figured it out. Needed to create a double buffer for the datagridview by doing the following:
class CustomDataGridView : DataGridView {
public CustomDataGridView() {
base.DoubleBuffered = true;
}
}
I also put the code into the RowPostPainting event and changed the if statement to:
if (e.RowIndex == i) { .... }
Hopefully this helps somebody else out.