Search code examples
c#listviewcolorscellobjectlistview

How to change the color of one cell in ObjectListView?


THIS IS NOT A PLAIN LISTVIEW! I want to create a Windows Forms Application in C#. But i have some problems with the ObjectListView. I want to change the color of one specific cell in the objectlistview but I can only change the color of one row. this is my objectlistview: screenshot

there you can see the column "Queue" and there is a value "Allgemein" and I want to color all these values with "Allgemein" in these column in red but not the whole row.

I changed with this code the color of the row:

objectListView1.Items[0].BackColor = Color.Red;

Solution

  • I think that what you are trying to do is well explained in this ObjectListView cookbook.