added rest method for delete and changed grid from cell editing to row editing.