Use local rowIndex instead of DataGridViewCell.RowIndex
This commit is contained in:
parent
a639857ec6
commit
f5089e7e29
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue