Added the update functionality to my gridview.