Display check box in listview

stustarz

Junior Contributor
Joined
Jan 10, 2003
Messages
246
Location
Earth
How can i display a checkbox columns within a listview. At the moment my boolean database field displays as true/false.

Thanks in advance
 
I think the listview itself has a CheckBoxes property, which (if enabled) will give each row a checkbox by the icon.
 
I see what you mean - and thats answered another question i was going to post. But..

At present my listview has two columns one shows text the other a boolean value - it retrieves the data from an access database. In access you can display checkboxes in a subform and I was wondering if this same idea could be achieved in a listview.
 
The listview control that ships with the framework only has the support I said above for checkboxes, i.e. in the first column only, next to the text. It's possible you could ownerdraw it and add the behaviour, but it would be a non-trivial task.
 
Back
Top