none
How to check all checkboxes inside listview in window mobile 6 application RRS feed

  • Question

  • Hi,

    I have a check box and a list-view.

    This list-view also contain check boxes inside it.

    I want to check all check boxes inside the list view on the selection(Checked) outer checkbox.

    Please help to solve this problem.

    Thanks in advance!

    Regards

    Rajni

    Wednesday, February 27, 2013 4:20 AM

Answers

  • Hi,

    I have resolved this issue.

    Onclick of external check box i did following code:-

    for (int i = 0; i < lstBarcode.Items.Count; i++)
                {
                    if (cbSelecteAll.Checked == true)
                    {
                        lstBarcode.Items[i].Checked = true;
                    }
                    else
                    {
                        lstBarcode.Items[i].Checked = false;
                    }
                }

    It will check and uncheck all checkboxes inside listview.

    Thanks

    Rajni

    • Marked as answer by Rajni Kaushal Wednesday, February 27, 2013 12:53 PM
    Wednesday, February 27, 2013 12:52 PM