473,388 Members | 1,382 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,388 software developers and data experts.

how to include a checkbox in listview at runtime in c#.

I have an listview.I want to create a checkbox in each row of the listview at runtime.
If i checked a checkbox in listview it will be added that row in my database
Jan 13 '11 #1
2 1919
Why would you want to do that at runtime? wouldn't it be simpler to just use a checklistbox all the time?

Anyways. what i can suggest is that you create a checklistbox that resides underneath the original listbox.
Hide and disable the one you don't need, and transfer the items between them.
Jan 13 '11 #2
Thank You Jones
Jan 13 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Lou | last post by:
Can anyone ponit me to examples of how to use? I have created a Listview and can add items and subItems, but how do I edit them?? i have a ListView with 10 items, each has 5 sub items How do...
0
by: yxq | last post by:
Hi, I write the code to change icon size in listview, but so as the Trackbar value changed, the icons will disappear, but the text is eyeable. **********************************************...
9
by: Rekha | last post by:
The data is filled in datagrid. I want to know how to add a checkbox column in datagrid? In the runtime, checkbox is checked then instead of checkbox value the (caseID )column value is retained....
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...
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...
1
chandru8
by: chandru8 | last post by:
hi everybody can anyone help me in this how to add a check box in flexgrid with sample code thanks in advance
1
by: febad | last post by:
Hello, I will like to change the value of a check box at runtime. I have a database with a field "multiple_print_select", which stores a value of "1" when it is checked so that the record can be...
1
by: iderocks | last post by:
Hi All, I created a dynamic checkbox in ASP .Net inside a Button1_Click event method (outside the page_load event) and performed the event handling method for the CheckedChanged event and when I...
3
by: ChristinaTIT | last post by:
Hi, I have a database and i want, when i will retrieve data from that database every row shd have a checkbox at the left of the row, when i select that checkbox, the row will be selected. How i...
1
by: coolmandar | last post by:
HI, I am creating checkbox at runtime , and want to handle checkchange event when user click on checkbox any suggestion appreciated
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.