Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi Friends,


I have one listview inside listview i have check boxes.

Then i select multiple checkboxes in listview and click button i want to display in textbox.


I bind data in listview thats ok

just i need when i select checkboxes that selected checkbox items i want to display in textbox

windows forms ok but in windows mobile forms there is no CheckedListViewItemCollection

in windows forms ok its appear but in windows mobile its not appear.

when i typ like ListView.chec...its not came in windows mobile forms

wt is proble here there is no capability for that otherwise i have to add any thing like dlls .


ListView.CheckedListViewItemCollection checkedItems = ListView1.CheckedItems;
what i have to do.is there any other way to resolve this..
Posted
Comments
Sergey Alexandrovich Kryukov 28-Jun-11 11:23am    
Language? Platform?
--SA

1 solution

<pre lang="msil">
Private Sub lsvBarang_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lsvBarang.SelectedIndexChanged
        Try
            Dim cari As Integer
            cari = lsvBarang.FocusedItem.Index
            txtCari.Text = (lsvBarang.Items(cari).SubItems(1).Text)
            DataIDM = (lsvBarang.Items(cari).SubItems(1).Text)
            DataNama = (lsvBarang.Items(cari).SubItems(3).Text)
            DataTipe = (lsvBarang.Items(cari).SubItems(7).Text)
        Catch ex As Exception
        End Try
    End Sub


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900