title: How can I specify the column heading within a WPF datagrid for an observable collection?
body: <p>I have the following code that I'm populating a WPF datagrid with:</p>
  
  <pre><code>var customers = new ObservableCollection&lt;Customer&gt;();
  
  foreach (
      var customer in
          collListItem.Select(
              item =&gt;
              new Customer
                  {
                      Persona = item["Persona"].ToString(),
                      CustomerName = item["Title"].ToString()
                  }))
  {
      customers.Add(customer);
  }
  
  this.dataGridOutstandingOrders.ItemsSource = customers;
  </code></pre>
  
  <p>Based upon my <strong>customer</strong> class:</p>
  
  <pre><code>public class Customer
  {
      /// &lt;summary&gt;
      /// Gets or sets the persona.
      /// &lt;/summary&gt;
      public string Persona { get; set; }
  
      /// &lt;summary&gt;
      /// Gets or sets the customer name.
      /// &lt;/summary&gt;
      public string CustomerName { get; set; }
  }
  </code></pre>
  
  <p>The problem is once I bind my data to the WPF datagrid the columns come through as the names of my variables in <code>Customer();</code>. Instead I'd like to be able to specify the name of the column (so for example <code>CustomerName</code> would be <code>Customer Name</code>). Is there a way to do this with annotations in my customer class?</p>