How to remove DataGrid’s blank row when binding to a ObservableCollection?

The same problem persist in WPF 4.0 version of DataGrid, and it is caused by the add-new row which it shows automatically for ObservableCollection ItemsSource. Setting IsReadOnly as True it’s too radical IMHO.
I solved it by disabling CanUserAddRows property if you don’t need that behavior, but you still want cells to be modified:

CanUserAddRows=”False”

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)