title: Bind a DataGridComboBoxColumn to an Enum
body: <p>I have a simple DataGrid which I want the user to add some rows to.
  However I want one of the columns to be a ComboBox with it's values taken from an <strong>enum</strong>.</p>
  
  <p>What's the simplest way of doing this in my XAML?</p>
  
  <p>I've tried following but I get the error <em>"Two-way binding requires Path or XPath"</em></p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;ObjectDataProvider x:Key="myEnumData"
                  MethodName="GetValues" 
                  ObjectType="{x:Type sys:Enum}"&gt;
          &lt;ObjectDataProvider.MethodParameters&gt;
              &lt;x:Type TypeName="local:MyEnum" /&gt;
          &lt;/ObjectDataProvider.MethodParameters&gt;
      &lt;/ObjectDataProvider&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>   &lt;DataGrid.Columns&gt;
          &lt;DataGridComboBoxColumn Header="MyHeader" DisplayMemberPath="EnumValue" 
              SelectedItemBinding="{Binding Source={StaticResource myEnumData}}"&gt;
          &lt;/DataGridComboBoxColumn&gt;
      &lt;/DataGrid.Columns&gt;
  </code></pre>