Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 972
MadBoy Avatar asked Mar 13 '12 20:03

MadBoy


1 Answers

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

like image 134
MadBoy Avatar answered Sep 19 '22 17:09

MadBoy