0
I need that when loading specific data in the listview the cell in question is formatted with defined color. The code below formats the entire and accurate row that format only the defined cell.
foreach (ListViewItem item in lsvDados.Items)
{
if (item.SubItems[18].Text == "VENCIDO") item.BackColor = System.Drawing.Color.Red;
else item.BackColor = System.Drawing.Color.Green;
}
What the code would look like to format only the cell ?