title: How to fetch all the rows in a listview wpf
body: <p>I have a list view which has a grid view with four columns. The itemsSource for the listview is an IList(Of SomeType). Each cell in the grid contains a checkboxes, which are checked/unchecked based on the values in the bound property. Now i want to retrieve all the rows in list/grid view for saving purposes or atleast all those checkboxes that are checked. I couldn't find a suitable way to do that. </p>
  
  <p>Here is how i create my listview.</p>
  
  <pre><code>                &lt;ListView Margin="10, 40, 95, 10" x:Name="ListViewPane"&gt;
                      &lt;ListView.View&gt;
                          &lt;GridView x:Name="gridColumns"&gt;
                              &lt;GridViewColumn Width="auto" Header="Right" DisplayMemberBinding="{Binding Name}"/&gt;
                              &lt;GridViewColumn Width="auto" Header="Read"&gt;
                                  &lt;GridViewColumn.CellTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;CheckBox Margin="0" VerticalAlignment="Center" IsChecked="{Binding CanRead}"/&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/GridViewColumn.CellTemplate&gt;
                              &lt;/GridViewColumn&gt;
                              &lt;GridViewColumn Width="auto" Header="Write"&gt;
                                  &lt;GridViewColumn.CellTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;CheckBox Margin="0" VerticalAlignment="Center" IsChecked="{Binding CanWrite}"/&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/GridViewColumn.CellTemplate&gt;
                              &lt;/GridViewColumn&gt;
                              &lt;GridViewColumn Width="auto" Header="Delete"&gt;
                                  &lt;GridViewColumn.CellTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;CheckBox Margin="0" VerticalAlignment="Center" IsChecked="{Binding CanDelete}"/&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/GridViewColumn.CellTemplate&gt;
                              &lt;/GridViewColumn&gt;
                          &lt;/GridView&gt;
                          &lt;/ListView.View&gt;
                  &lt;/ListView&gt;
  </code></pre>
  
  <p>Can anyone help me????</p>