Changing color of a row of listview according to item
问题 I want to change the color of my Listview according to its status. I have two status, the "PENDING" that I want to change in Red Color and "COMPLETE" to Blue. How is it possible? I have no Idea since this is my first time to do it in a list view. 回答1: Something like this perhaps: Dim ListView1 As ListView = New ListView ListView1.BackColor = if(status.tolower = "pending",Color.Red, Color.Blue) Or you can colour indiviual items: Dim lvi As ListViewItem = New ListViewItem lvi.Text = "Test" lvi