When a user double clicks on a row, I am changing the color to indicate that they have viewed that particular item.
If they click on the headers to sort the rows, the font colors all go back to the default. Seems like the Datagrid resets or something. Is this a bug ?
private void dgv_Results_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
if (e.RowIndex >= 0)
// Set Row Color to indicate it was viewed
dgv_Results.Rows[e.RowIndex].DefaultCellStyle.ForeColor = System.Drawing.Color.Purple;
Please login first to submit.