Hello,
I have issues with a function that updates the ListGrid every 150ms from a IList<T>:
In the cells with data, I just update the value and the color (CurrentRow); for the remaining rows and cells I have this 2 nested fors to clear texx and color.
for (int r = CurrentRow; r < _ListGrid.RowCount; r++)
{
for (int c = 1; c <= _ListGrid.ColCount; c++)
{
_ListGrid.Model[r, c].CellValue = "";
_ListGrid.Model[r, c].BackColor = Color.Transparent;
_ListGrid.Model[r, c].TextColor = Color.Black;
}
}
This blocks the UI and uses a lot of CPU:
Is there a fastest way to clear cells? I've found
this post with a similar problem but it's not my case.
Thank you for your help and time.
Daniele