title: WPF Datagrid Double Click Cell MVVM Design
body: <p>I have a WPF application that contains a datagrid. It is bound to my List object "Orders" shown below.</p>
  
  <pre><code>public class OrderBlock
  {
    public Settings setting;
    public List&lt;Order&gt; orders;
  }
  public class Order
  {
    public int Amount;
    public string OrderID;
    public string OrderIDDup;
    public string Name;
    public string NameDup;
    public bool DupIDs;
    // and some string, int fields
  }
  </code></pre>
  
  <p>For reasons out of my control it is possible that there can be more than one OrderID, hence the OrderIDDup property. My datagrid by default shows just the OrderID and not the OrderIDDup.</p>
  
  <p>What I would like to do is for the user to be able to click on the cell ID and for another window to load to show them the other ID as well as the two names and let them choose which ID should be used.</p>
  
  <p>I have been reading that the WPF DataGrid doesn’t support this functionality of double clicking on a cell. So I am a bit lost as how i should start going about this issue. The other issue I can see is that as I am trying (being the operative word) to use a MVVM design how would this kind of event be exposed to my view model?</p>
  
  <p>Also is this the best way to go about showing such information.</p>
  
  <p>Any help would be great,
  Thanks,
  M</p>