I am searching for a way to change the backgroundcolor of a specific cell to red and the back to black again.
With this code sometimes almost all cells is blinking because I have to use Application:: DoEvents to update the BackColor.
How can I change this like this without causing the 'blinking' ?
dataGridView1->Rows[5]->Cells[2]->Style->BackColor = Color::Red;
Application::DoEvents();
Thread::Sleep(100);
dataGridView1->Rows[5]->Cells[2]->Style->BackColor = Color::Black;
Application::DoEvents();