I followed some threads here about using Row.Tag to keep track of newly added rows and changed rows via RowFormatting event. It is something like this:
Let say I updated one row. The row is now colored in red color. When I scroll down the grid using the scroll bar, I noticed that there are more red colored rows appeared while I was scrolling down. If I stopped it quickly enough, an incorrectly red colored row would show up inside the grid's view port.
Look like somebody forgot to clear out the RowInfo information :)!
Phi
private
void
gridView_RowFormatting(
object
sender, RowFormattingEventArgs e)
{
if
(e.RowElement.RowInfo.Tag !=
null
)
{
if
(e.RowElement.RowInfo.Tag.ToString() ==
"NEW"
)
e.RowElement.ForeColor = Color.Green;
else
e.RowElement.ForeColor = Color.Red; //Changed
}
}
Let say I updated one row. The row is now colored in red color. When I scroll down the grid using the scroll bar, I noticed that there are more red colored rows appeared while I was scrolling down. If I stopped it quickly enough, an incorrectly red colored row would show up inside the grid's view port.
Look like somebody forgot to clear out the RowInfo information :)!
Phi