C#

[C#]ListView Row Color 변경 예제

선영아 사랑해 2016. 4. 19. 09:47

//글자색 변경

if(listView1.Items.Count % 2 == 0)
    listView1.Items[0].ForeColor = Color.Red;


//배경색 변경

if(listView1.Items.Count % 2 == 0)
    listView1.Items[0].BackColor = Color.Red;