473,394 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Add Checkbox to ListView

How can I assign a checkbox to a listview ? I'm reading data from a foxpro table and one of the fields contains a 1 or 0. I would like for all 1's to show a checked checkbox in the listview. How do I get the checkbox in the listview? Thanks.
Nov 20 '05 #1
2 7715
* =?Utf-8?B?VGVycmFuY2UgLSBhbGwya25vdzIwMDFAeWFob28uY29t?= <Terrance - al**********@yahoo.com@discussions.microsoft.com> scripsit:
How can I assign a checkbox to a listview ? I'm reading data from a
foxpro table and one of the fields contains a 1 or 0. I would like for
all 1's to show a checked checkbox in the listview. How do I get the
checkbox in the listview? Thanks.


I think it's easier to use a datagrid instead of the listview:

<URL:http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q754q>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi,

http://www.windowsforms.com/default....mID=21&mid=142

Ken
-----------------

"Terrance - al**********@yahoo.com" <Terrance -
al**********@yahoo.com@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com:
How can I assign a checkbox to a listview ? I'm reading data from a foxpro
table and one of the fields contains a 1 or 0. I would like for all 1's to
show a checked checkbox in the listview. How do I get the checkbox in the
listview? Thanks.


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.1.2 - Release Date: 6/7/2004
Nov 20 '05 #3

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

Similar topics

3
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,...
0
by: Nathan M | last post by:
Hi, In a listview with the View set to "Details" and CheckBox = True, is it possible to get the CheckBox to be centered vertically? The font size in my listview is 14, which increases the size...
4
by: Steve | last post by:
Hi all, I don't want to use the datagrid if I don't have to. Is there a way to setup a ListBox to have more than one checkbox column? I need something like this | Include || Set as...
2
by: samoore33 | last post by:
I am working with a program that utilized the checkbox property of a listview. When a user clicked on the checkbox, it was suppose to calculate and total some prices. I did not make any changes to...
3
by: =?Utf-8?B?QnJldA==?= | last post by:
I am a VB Developer w/ SQL Server experience breaking into web world via the Visual Web Developer Express. I've already set up my data sources to my SQL Server tables and have created a grid view...
1
by: sklett | last post by:
I wasn't sure how to deal with this, but this is what I cam up with. If possible, I'd like a little feedback if there is a better way to deal with a situation where changes in an event handler...
3
by: ewankosayo | last post by:
Listview Checkbox I populate here a listview and the checkbox property I set it to true so I can have a checkboxes on my listview. My problem is if I checked two checkboxes on listview it falls...
0
by: Marius Manolea | last post by:
Hi, I have a strange problem, I don't receive any modifications from listview in edit mode (OldValues & NewValues are empty) <asp:ListView ID="lvEditPersonRoles" runat="server"...
7
!NoItAll
by: !NoItAll | last post by:
I needed to put checkboxes in several cells in a listview control. The way the listview control works you can really only have an "official" checkbox in the first cell, and attempts to put them...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.