stustarz Posted February 22, 2003 Posted February 22, 2003 How can i display a checkbox columns within a listview. At the moment my boolean database field displays as true/false. Thanks in advance Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
*Gurus* divil Posted February 22, 2003 *Gurus* Posted February 22, 2003 I think the listview itself has a CheckBoxes property, which (if enabled) will give each row a checkbox by the icon. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
stustarz Posted February 22, 2003 Author Posted February 22, 2003 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. Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
*Gurus* divil Posted February 23, 2003 *Gurus* Posted February 23, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.