title: Manually add rows in WPF DataGrid
body: <p>I have the following XAML Code:</p>
  
  <pre><code>&lt;sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"&gt;
      &lt;sdk:DataGrid.Columns&gt;
          &lt;sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/&gt;
          &lt;sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/&gt;
          &lt;sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/&gt;
      &lt;/sdk:DataGrid.Columns&gt;
  &lt;/sdk:DataGrid&gt;
  </code></pre>
  
  <p>I would like to enter manual data into the grid programatically, how can I manage to do this?</p>
  
  <p>Thanks</p>
  
  <p><strong>Working Solution</strong></p>
  
  <p><a href="http://sa.ndeep.me/post/programatically-add-rows-in-a-wpf-datagrid" rel="nofollow noreferrer">Programatically add rows in a WPF DataGrid</a></p>