How to make listviewItem looks checked ?

  • Thread starter Thread starter cyshao
  • Start date Start date
C

cyshao

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^_^
 
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
 
Thank you :-)

pradeep_TP said:
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 said:
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^_^
 
Back
Top