Highlight broken grid conditional lines

currently i am highlighting data lines that do not exist but have an error to click



here is the highlighting code
rowKeyUpdate.Appearance.BackColor = System.Drawing.Color.Yellow;
rowKeyUpdate.Appearance.ForeColor = System.Drawing.Color.Red;

if (highlighted)
{
tblNotProcess.Rows.Add(rowKeyUpdate);
rowKeyUpdate.Appearance.BackColor = System.Drawing.Color.Yellow;
rowKeyUpdate.Appearance.ForeColor = System.Drawing.Color.Red;
}
I found the cause was my use to lock the grid
//epiUltraGridC_Paste.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False;
//epiUltraGridC_Paste.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;
need another solution to lock the grid

Thank you very much! Have a good day!