Use local rowIndex instead of DataGridViewCell.RowIndex

This commit is contained in:
Michael Bucari-Tovo 2021-08-20 14:53:12 -06:00
parent a639857ec6
commit f5089e7e29

View File

@ -22,9 +22,9 @@ namespace LibationWinForms
var foreColor = tagsString?.Contains("hidden") == true ? HiddenForeColor : DataGridView.DefaultCellStyle.ForeColor;
if (DataGridView.Rows[RowIndex].DefaultCellStyle.ForeColor != foreColor)
if (DataGridView.Rows[rowIndex].DefaultCellStyle.ForeColor != foreColor)
{
DataGridView.Rows[RowIndex].DefaultCellStyle.ForeColor = foreColor;
DataGridView.Rows[rowIndex].DefaultCellStyle.ForeColor = foreColor;
}
if (tagsString.Length == 0)