title: Adding Grids In codeBehind
body: <p>To divide a <code>Grid</code> into rows we give it row definitions and the <code>UIElement</code> that needs to be placed in a particular row in that grid we do it like this:</p>
  
  <pre><code>Button Name="Button1" Grid.Row="1"
  </code></pre>
  
  <p>Now suppose I want to do this thing in code behind dynamically then how can we do it.</p>
  
  <p>Thank You.</p>