473,513 Members | 4,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Virtual ListView with Checkboxes. Is it possible?

I have a virtual ListView (VirtualMode set to true). To make it more
convenient for the users of the ListView to select its items, I've set the
ListView's CheckBoxes property to true. However, in virtual mode no
checkboxes appear. That is, when the View style is set to Details the text
labels are indented to make room for checkboxes, but no checkboxes are
displayed. Am I missing something?

I think this ought to be as straight forward as it is to select multiple
items in the ListView and access those items through the SelectedIndices
property of the ListView. Of course, the checked checkboxes would be
accessed through the CheckedIndices property.

So, to sum up; what I would like to know is whether checkboxes are supported
by a virtual ListView, and if so, what could be the reason I can't get it to
work?

Regards Carl Johansson
Nov 28 '07 #1
1 5355
see http://www.codeproject.com/useritems...irtualMode.asp

--
Sheng Jiang
Microsoft MVP in VC++
"Carl Johansson" <ca************@nogarbagehallde.comwrote in message
news:e2**************@TK2MSFTNGP03.phx.gbl...
I have a virtual ListView (VirtualMode set to true). To make it more
convenient for the users of the ListView to select its items, I've set the
ListView's CheckBoxes property to true. However, in virtual mode no
checkboxes appear. That is, when the View style is set to Details the text
labels are indented to make room for checkboxes, but no checkboxes are
displayed. Am I missing something?

I think this ought to be as straight forward as it is to select multiple
items in the ListView and access those items through the SelectedIndices
property of the ListView. Of course, the checked checkboxes would be
accessed through the CheckedIndices property.

So, to sum up; what I would like to know is whether checkboxes are
supported
by a virtual ListView, and if so, what could be the reason I can't get it
to
work?

Regards Carl Johansson


Nov 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5367
by: Bright Sun | last post by:
Hi, I have a ListView that is shown in Details mode, and the Checkboxes property is set to true. My problem is that I dont want the checkboxes being activated when items in the ListView are double-clicked. Is this possible? Thanks! Bright
3
9286
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data, checkbox's and icons are displayed as they are meant to be. My problem is this, I am trying to achieve the same results as I get with CheckListBox(s),...
0
1615
by: Yaron | last post by:
Hi, I have a ListView that is shown in Details mode, and the Checkboxes property is set to true. My problem is that I dont want the checkboxes being activated when items in the ListView are double-clicked. Is this possible? Thanks! Yaron
0
1559
by: Yaron | last post by:
Hi, I have a ListView that is shown in Details mode, and the Checkboxes property is set to true. My problem is that I dont want the checkboxes being activated when items in the ListView are double-clicked. Is this possible? Thanks! Yaron
2
3180
by: padhuwork | last post by:
Hi All, Basically for ListBox and ListView controls, its possible to add checkboxes. Instead of a checkbox is it possible to add radio button? Generally, when a user clicks on a checkbox, usually they tend to think of multiple select... and for radio buttons its vice versa. Radio Buttons would be much more user friendly than checkboxes when it...
0
1405
by: Per Rollvang | last post by:
Hi All! I have a listview in virtualmode. I can't get the checkboxes to work right. The check-events don't fire, and the checked state seem to live a life way beyond my knowledge... Do I have to store the checked / unchecked-state? Do I have to mess with keystrokes / mouseclicks to monitor what the user does?
1
5067
by: dvestal | last post by:
I have a ListView with checkboxes. I want to remove items when the checkboxes are unchecked, but to do so yields an ArgumentOutOfRangeException. Is there an easy way to get around this? A simple program that illustrates the exception is below: using System; using System.Windows.Forms; namespace WindowsApplication1
0
1876
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the form every thing works fine: checking items by code as well as checking with mouse: Using the CheckdItems Property is confused too.
2
6796
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the form every thing works fine: checking items by code
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.