Hello everyone,
I have Listview items with checkboxes and image buttons. Please find the screen show from below url.
I want two scenario...
1) After select one row, then click on fist image button - want to get one row listview details in code behind (Now it's happening). Please find the screen show from below url.
1) After select one row, then click on fist image button - want to get one row listview details in code behind (Now it's happening). Please find the screen show from below url.
2) After select one or more checkboxes then click on the second image button - want to get whole checked items from the listview. Please find the screen show from below url.
But after applying this code not getting all checkbox selected items.
- <GridViewColumn>
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox Tag="{Binding UserId}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
- DataTemplate>
- GridViewColumn.CellTemplate>
- GridViewColumn >
- <CheckBox Tag="{Binding UserId}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" IsChecked="{Binding RelativeSource={RelativeSource AncestorType=ListViewItem},Path=IsSelected}" />
- foreach (DocumentsUser item in listView1.SelectedItems) /*After select all check-boxes, then want to get all listview items here.*/
- {
- }


Amit GuptaRank #190 · 12.8K reputationPosted Dec 29, 2016, 3:32 AM EST
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 28, 2016, 11:52 PM EST
Try this:
Abhilash J ARank #1,243 · 1.4K reputationPosted Dec 29, 2016, 3:09 AM EST