I have the following code :
private void dgvStatus_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
{
foreach (DataGridViewRow row in dgvStatus.Rows)
{
row.Cells[color.Index].Style.BackColor = Color.FromArgb(((GesTest.dsEssais.FMstatusAnomalieRow)row.DataBoundItem).iColor);
}
}
I am trying to set the background color of each cell from the background color column. this doesn't work the color never change. Any idea of why?
I've been looking around but didn't found anything usefull
try the following (in RowDataBound method of GridView):