title: Add blank row at the end of a WPF datagrid conditionally (without using a default parameterless ctor)
body: <p>I am trying to add a BLANK row at the end of a WPF 4.0 DataGrid <em>conditionally</em> (not via code-behind directly). I have tried the following  but in vain - </p>
  
  <p>I have tried to do get the IEditableCollectionView like this and operate upon that interface: </p>
  
  <pre><code>CollectionViewSource.GetDefaultView(myObservableCollection) as IEditableCollectionView
  </code></pre>
  
  <p>But, that does not work as intended because one of the factors for the <strong>CanAddNew</strong> property to be true is to add a default constructor to the underlying object of the collection (to which the Grid is bound to).</p>
  
  <p><strong>Problem</strong>: If I add a default constructor, then the grid always adds a blank row. I want to add upon a <em>condition</em> (checking a bool value) and not always. How do I do that without using a default parameterless constructor for my ViewModel class ?</p>