title: How to Freeze First Column of WPF DataGrid
body: <p>I have a WPF DataGrid..</p>
  
  <p>I want to freeze first column of that WPF DataGrid while horizontal scrlling..</p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;DataGrid Name="dgQuestionTemplate" HorizontalAlignment="Left" Grid.Row="1" Width="870" HorizontalScrollBarVisibility="Auto" IsReadOnly="False"&gt;
  
              &lt;DataGrid.Columns&gt;                    
                  &lt;DataGridTextColumn Binding="{Binding ExamDate}" Header="Date" IsReadOnly="True" Width="90" /&gt;
                  &lt;DataGridTextColumn Binding="{Binding ExamName}" Header="Test Name" IsReadOnly="True" Width="195" /&gt;
                  &lt;DataGridTextColumn Binding="{Binding Batch}" Header="Batch" IsReadOnly="True" Width="100" /&gt;
                  &lt;DataGridTextColumn Binding="{Binding ExamTime}" Header="    Count Down  [Days: hr: min: sec]"  IsReadOnly="True" Width="*" /&gt;
              &lt;/DataGrid.Columns&gt;
  
  &lt;/DataGrid&gt;
  </code></pre>