ListView, CheckBox Clumn issue.

Hi all,

I have a ListView control that has the CheckBoxes property set to true. Now, when the ListView gets displayed, the CheckBoxes get displayed in the first column along with the ListView Item text of each ListViewItem. Is there anyway I can get this CheckBox to be in its own column (whilst remaining as the first column in the ListView)

Thanks

Tryst



Answer this question

ListView, CheckBox Clumn issue.

  • MarkWilson

    Thanks, Yifung Lin!

    That has solved my problem. Its just a shame that you can't locked columns in a ListView.

    Tryst


  • KaraB

    You can fake a first column of CheckBoxes by adding Items to your ListView that have empty Text and making the Width of that first column small. Then, add the content in the SubItems collection of each item

    HTH,

    Yifung


  • ListView, CheckBox Clumn issue.