Yesterday, I was playing with WPF’s DataGrid and DataBindings. ItemSource of my DataGrid was bound with the ObservableCollection. DataGrid was displaying all the items correctly which were present in my collection but I was facing one issue. The DataGrid was not displaying a blank empty row through which user can add a new record. I had set CanUserAddRows=”True” in my XAML. After spending sometime on the problem I found out that in order to show a blank row for adding a new record, DataGrid needs a constructor which takes no parameter. So I added a constructor of MyCustomObject which takes no parameter as a result DataGrid started displaying a blank row at the end.