title: Datagrid Checkbox in UWP
body: <p>I am struggling to find a working example of a utilised checkbox for my datagrid in UWP. I would like to use my check box -&gt; press a button -&gt; do X.</p>
  <p>I dont suppose any of you could either give me an example of the process or point me to a documented example? Thanks</p>
  <p>This is what I have:</p>
  <pre><code>&lt;StackPanel Margin=&quot;169,33,0,0&quot; Height=&quot;25&quot; VerticalAlignment=&quot;Top&quot; Background=&quot;#FF383838&quot;/&gt;
          &lt;controls:DataGrid x:Name=&quot;EmployeeGrid&quot; Margin=&quot;170,55,35,35&quot;
                    ItemsSource=&quot;{x:Bind persons}&quot;
                    CanUserSortColumns=&quot;True&quot;
                    AutoGenerateColumns=&quot;False&quot; Background=&quot;Black&quot;
                             SelectedItem=&quot;itemSelected&quot; &gt;
              &lt;controls:DataGrid.Columns&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Employee ID&quot;
                                               Binding=&quot;{Binding PersonId}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;First Name&quot;
                                               Binding=&quot;{Binding FirstName}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Last Name&quot;
                                               Binding=&quot;{Binding LastName}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Address&quot;
                                               Binding=&quot;{Binding Address}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Position&quot;
                                               Binding=&quot;{Binding Position}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Pay Rate (ph)&quot;
                                               Binding=&quot;{Binding PayratePH}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Sex&quot;
                                               Binding=&quot;{Binding Sex}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;TaxCode&quot;
                                               Binding=&quot;{Binding TaxCode}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Email&quot;
                                               Binding=&quot;{Binding Email}&quot;/&gt;
                  &lt;controls:DataGridTextColumn Header=&quot;Emergency Contact&quot;
                                               Binding=&quot;{Binding EmergencyDetails}&quot;/&gt;
                  &lt;controls:DataGridCheckBoxColumn Header=&quot;Selected&quot;  
                                                      /&gt;
                  
  
              &lt;/controls:DataGrid.Columns&gt;
          &lt;/controls:DataGrid&gt;
  </code></pre>