Quick crash bug fix with the row parsing engine where an existing, unchanged, header row is marked as dirty by the engine.

This commit is contained in:
2017-01-20 23:51:33 -06:00
parent 43bf07c212
commit ab00ad2598
4 changed files with 18 additions and 26 deletions
@@ -146,7 +146,7 @@ namespace AdvertsingProfitControl
return;
}
//IF the previous row is a header row, then color it as a group header and color the current row as a member of said group.
else if (rowStatus == RowAttribute.HeaderRow)
else if (rowStatus == RowAttribute.HeaderRow && !(bool)dataGridView.Rows[i - 1].Cells[isHeaderColumn].Value)
{
//Set the previous row as a header row.
dataGridView.Rows[i - 1].Cells[isHeaderColumn].Value = true;