Bernhard Lang asked 2018-01-05 07:23:26 UTC
We have an issue with DataGridView's Cell-Style getting not updated when set within a task using Application.StartTask.
In the attached demo we set some values of a DataGridView but column three is calculated in a task startet with Application.StartTask. Within this task we set the value of the cell and also call Application.Update. Depending on the result we want to apply formating using the CellFormating event. But the updated style is not displayed while the text is shown.
The style is properly updated when reloading the page with F5.
Bernhard Lang asked 2018-01-05 07:23:26 UTC
We have an issue with DataGridView's Cell-Style getting not updated when set within a task using Application.StartTask.
In the attached demo we set some values of a DataGridView but column three is calculated in a task startet with Application.StartTask. Within this task we set the value of the cell and also call Application.Update. Depending on the result we want to apply formating using the CellFormating event. But the updated style is not displayed while the text is shown.
The style is properly updated when reloading the page with F5.