Hey Folks.
I'm currently stucked on a strange happening.
With the following code i'm formating a row, if cellvalue is changed.
The BackColor appears to the row. Right so far.
But if im scrolling down then in the DataGridView, the formatting doesn't keep on its row, it's scrolling with.
Just want to highlight edited rows.
Any suggestions?
Kind regards, Tom
I'm currently stucked on a strange happening.
With the following code i'm formating a row, if cellvalue is changed.
private void gv_data_CellValueChanged(object sender, GridViewCellEventArgs e) |
{ |
GridViewRowInfo r = e.Row; |
((GridCellElement)sender).RowElement.BackColor = Color.LightYellow; |
((GridCellElement)sender).RowElement.DrawFill = true; |
r.Cells[1].Value = "1"; |
} |
The BackColor appears to the row. Right so far.
But if im scrolling down then in the DataGridView, the formatting doesn't keep on its row, it's scrolling with.
Just want to highlight edited rows.
Any suggestions?
Kind regards, Tom