How to get access of a checkbox in a DataGrid.RowHeaderTemplate through datagrid object in Visual C# 2010 & WPF?
<p>here is the portion of XAML

    
        
            
                
                    
                        
                    
                    
                        -->
                        
                        
                        
                        
                    
                    
                        
                            
                            
                            
                            
                        
                    
                    
                        
                            
                                
                            
                        
                    
                
                
                
                </p>

<pre><code>        &lt;/Grid&gt;
    &lt;/GroupBox&gt;
    &lt;TextBox Height="32" HorizontalAlignment="Right" Margin="0,417,256,0" Name="txtReason" VerticalAlignment="Top" Width="420" /&gt;
    &lt;Label Content="Reason for release" HorizontalAlignment="Left" Margin="32,417,0,0" Name="label1" VerticalAlignment="Top" UseLayoutRounding="True" Width="109" /&gt;
    &lt;Button Content="Remove" Height="23" HorizontalAlignment="Left" Margin="578,426,0,0" Name="btnRemove" VerticalAlignment="Top" Width="75" /&gt;
    &lt;Label Content="No. of Users'" Height="28" HorizontalAlignment="Left" Margin="664,64,0,0" Name="label2" VerticalAlignment="Top" Width="83" /&gt;
    &lt;Label Height="28" HorizontalAlignment="Left" Margin="744,64,0,0" Name="lblTotalUser" VerticalAlignment="Top" Width="72" /&gt;
    &lt;Button Content="Count" Height="23" HorizontalAlignment="Left" Margin="666,151,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" /&gt;
&lt;/Grid&gt;
</code></pre>

<p></p>

<p>I need to acess the dgCheck CheckBox through dgOnlineUsers datagrid? </p>
