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

How to make listviewItem looks checked ?

How to make listviewItem looks checked ?

Hi my friends:

I have a listView with CheckBoxes attribute as True.

I use code to set an ListViewItem.Checked = true, but UI checkbox is
still looks unchecked.

Ho, coulde you tell me how to resulve the problem?

Thanks
CYShao^_^
Nov 16 '05 #1
2 2982
hi cyshao,

You have to set the the checked property to true for each item like in the
following statement.
listView1.Items[0].Checked = true;

happy programming!!
pradeep_TP

"cyshao" wrote:
How to make listviewItem looks checked ?

Hi my friends:

I have a listView with CheckBoxes attribute as True.

I use code to set an ListViewItem.Checked = true, but UI checkbox is
still looks unchecked.

Ho, coulde you tell me how to resulve the problem?

Thanks
CYShao^_^

Nov 16 '05 #2
Thank you :-)

"pradeep_TP" <pr*******@discussions.microsoft.com> дÈëÓʼþ
news:B5**********************************@microsof t.com...
hi cyshao,

You have to set the the checked property to true for each item like in the
following statement.
listView1.Items[0].Checked = true;

happy programming!!
pradeep_TP

"cyshao" wrote:
How to make listviewItem looks checked ?

Hi my friends:

I have a listView with CheckBoxes attribute as True.

I use code to set an ListViewItem.Checked = true, but UI checkbox is
still looks unchecked.

Ho, coulde you tell me how to resulve the problem?

Thanks
CYShao^_^

Nov 16 '05 #3

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

Similar topics

0
by: LV | last post by:
Hello, I would like to manually set one of my list view items as selected. When this item is set, I would like for a method to execute. I have a delegate on the list view for SelectedIndexChanged....
0
by: kan | last post by:
I am sorry,I have poor english.. Two Class file is located below one namespace.. it is no error.. namespace Convert (namespace name) WinForm (first class name) ColumnSorter (second class...
2
by: Kelly | last post by:
Hi. I am trying to do something that seems very simple. I want to create a class that inherits from the ListViewItem Control so that I can add a few custom properties to it. I then want to make...
6
by: grs | last post by:
The following is a code example from the Microsoft MSDN. My question is on the following three lines of code: ListViewItem item1 = new ListViewItem("item1",0); ListViewItem item2 = new...
0
by: Kluch | last post by:
I am trying to select and focus single ListViewItem and can't seem to do so, here is my code: IEnumerator * itemList = mLsvMyList->Items->GetEnumerator(); while (itemList->MoveNext()) {...
1
by: VJ | last post by:
How do I assign Images dynamically.. looks like I can only use a ImageList and ImageIndex.. how can set a Image to ListViewItem, without using the ImageList? VJ
1
by: Alan T | last post by:
I have a listview defined a coloumn at design time. And the code I use to add a listviewitem: ListViewItem lvi = new ListViewItem(user.Name); lvi.Tag = (Object)user.Id; ...
0
by: garyusenet | last post by:
I am trying to create a form that will display a list of open internet explorer windows and allow the user to choose one of them. So far I have created an arraylist which contains all of the open...
13
by: deciacco | last post by:
How can I have access to the items collection of a listview control on my form from a background thread? I know I need delegates to update the listview control and I have those calls in the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.