title: Disable Text Wrapping on a Dynamically Filled DataGrid WPF
body: <p>As the title mentions I am creating a <code>DataGrid</code> as follows: </p>
  
  <pre class="lang-cs prettyprint-override"><code>dataGrid = new DataGrid();
  dataGrid.ItemsSource = dSet.Tables[i].DefaultView;
  </code></pre>
  
  <p>and adding it inside a <code>WrapPanel</code>. Everything is working but I need to disable the text wrapping on rows with multiple lines and limit the column width and having them displaying three dots.</p>
  
  <p>I tried styling the <code>DataGridCell</code> but nothing is working for me.</p>
  
  <p>Can anyone help with this?</p>
  
  <p>Note: I cannot create predefined columns since this is a dynamic grid that I cannot determine before what columns it will populate.</p>