[SOLVED] DataGridView looses font colors after sorting (WiseJ V 1.5x)

Answered
0
0

Hello,

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 ?

  • You must to post comments
Best Answer
0
0

Hi Edmond,

Let me know if you still have issues after updating to the latest release.

Best regards,

Levie

  • You must to post comments
0
0

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;

}

}

  • You must to post comments
0
0

Hi Edmond,

can you please share some code how you set the font colors ?
I can´t reproduce anymore with our latest build and want to make sure that it´s fixed.

Thanks in advance,
Frank

  • You must to post comments
0
0

Thanks Edmond.

Logged as #1845.

Best regards
Frank

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.