title: WPF DataGrid columns
body: <pre><code>DataGridTextColumn col = new DataGridTextColumn();
  
  col.Header = "Text1";
  col.Binding = new System.Windows.Data.Binding("Text1");  
  grd.Columns.Add(col);
  </code></pre>
  
  <p>I want to get the Binding propertyname for each column    </p>
  
  <pre><code>foreach (DataGridTextColumn column in grd.Columns)
    {
  
    }
  </code></pre>
  
  <p>How do I achieve this?</p>