Use local rowIndex instead of DataGridViewCell.RowIndex
This commit is contained in:
parent
a639857ec6
commit
f5089e7e29
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user