Change color to Listview column item

后端 未结 2 795
迷失自我
迷失自我 2021-01-28 18:50

Is it possible to change color of a specific item for specific column in Listview ?

2条回答
  •  不思量自难忘°
    2021-01-28 19:26

    As you haven't mentioned what you want to change so Below is the example to change backcolor and forecolor of a specific subitem in listview

     item1.SubItems[1].BackColor = Color.Yellow;
     item1.SubItems[1].ForeColor= Color.Yellow;
    

    You can specify your own subitem by column name.

提交回复
热议问题