Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows ListView control (or similar) that can have multiple columns of checkboxes?
    primarykey
    data
    text
    <p>OK, so my Windows application involves a window that, among other things, has a list of objects in a pane. Each object has 8 boolean values that need to be determined — so I'd like a list of the objects, with eight columns of checkboxes after. I'm not using MFC, should that be relevant.</p> <p>ListView <em>looks</em> the way I want it to, but apparently it doesn't accept checkboxes in SubItems (the <code>LVS_EX_CHECKBOXES</code> style only gives each row a checkbox on the left).</p> <p>So what I need is some kind of alternative to ListView that <strong>does</strong> allow this. I've been looking, but nothing I've found seems to work. </p> <p>I have seen reference to some <code>DataGridView</code> control, but I don't see that as an option in my Visual Studio 2010 "toolbox" — how does one access it, is it even available for non-MFC C++ projects? Most references to it seem to be for VB or C#.</p> <p>Another thing I found is is this <a href="http://www.codeproject.com/KB/list/ObjectListView.aspx" rel="nofollow" title="A Much Easier ListView">custom ListView</a>, but it, again, seems to be for C# and not C++. I'd certainly accept suggestions on how to use this resource in my code, if there's a simple way to interface with the C# dialogue (I'm completely unfamiliar with C#).</p> <p>Anyway, any thoughts, suggestions, or tips anyone has, would be most appreciated!</p> <p>EDIT: This should maybe go in a new question, but it doesn't really seem deserving an entire question on its own: MFC <em>seems</em> to have more support for this kind of thing (insofar as most of the custom controls I can find to download are for MFC). My project does not actually <strong>require</strong> being non-MFC, it just <strong>is</strong>, at the moment. How much work am I looking at to convert it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload