ListViewItem lView = new ListViewItem(); lView.Text = "Main text"; if (productinfo.IndexOf("(SALE)", StringComparison.OrdinalIgnoreCase) > -1) { lView.SubItems[1].ForeColor = Color.Red; lView.SubItems.Add(productprice); } lView.SubItems.Add(moreinfo); lView.SubItems.Add(details); lView.SubItems.Add(ability); lView.SubItems.Add(links); listView.Items.Add(lView);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)