Search code examples
c#objectlistview

How to get rid of checkbox text in subitems ObjectListView


I've created an ObjectListView which has sub items with CheckBoxes. It's quite simple but the problem is for some reason it keeps on displaying True/False value next to checkbox. I could hide it with setting width 23-30. It's like it's using the true/false value from database but instead of just using it for checkbox it's also displaying it.

ObjectListView

So any way to get rid of it?


Solution

  • To fix that one has to set OwnerDraw to True on an ObjectListView. Took me a while to figure out.