I am using this code to let a cell in a dataGridView "blink" in yellowgreen color and then back to Black.
I am using Sleep() and Application:oEvents() to update the grid.
When using the Application:oEvents() all cells can have a tendence to "blink" wich look a bit strange when I only want to update ->Cells[0].
Is there another way to do this to prevent the whole dataGrids Cells to "blink" ?
Code:
dataGridView1->Rows[e->RowIndex]->Cells[0]->Style->BackColor = Color::YellowGreen;
Application::DoEvents();
Thread::Sleep(50);
dataGridView1->Rows[e->RowIndex]->Cells[0]->Style->BackColor = Color::Black;
Application::DoEvents();