how to delete data from datagrid,edit,select,update data from datagrid and ask for a message to do that.
See this and this.