title: WPF datagrid text wrap for all columns
body: <p>I know how to wrap text in dataGrid for one column .. how can I do it for all in project ... thanks ... so my code ...</p>
  
  <pre><code>&lt;DataGrid Name="dataGrid1"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Width="*" Header="Person" Binding="{Binding Path=person}" &gt;
              &lt;DataGridTextColumn.ElementStyle&gt;
                  &lt;Style&gt;
                      &lt;Setter Property="TextBlock.TextWrapping" Value="Wrap" /&gt;
                  &lt;/Style&gt;
              &lt;/DataGridTextColumn.ElementStyle&gt;
          &lt;/DataGridTextColumn&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>