Search code examples
c#winformsobjectlistview

How to set "background" color of selected item in ObjectListView?


how can I set or change "background color" of selected item in objestlistview? Basically, how I can get rid of the blue color in the background of text?

enter image description here

Thank you for any answers.


Solution

  • Judging from the picture you use translucent selections:

    objectListView1.UseTranslucentSelection = true;
    

    You also have to set

    objectListView1.OwnerDraw = true;
    

    to get rid of the dark blue selection color.