Cannot delete the current row when I press delete key

Sep 14, 2012 at 12:03 PM
Edited Sep 14, 2012 at 12:04 PM

I created a DataGrid bound to a DataTable.
The dataGrid1.DeleteRowsWithDeleteKey property is set to true, but I cannot delete the current row when I press delete key at runtime.
What have I done wrong?

Thank you.