How can we work on the selected item of the datagrid so that we can either delete or update it. I have done the above operations via querry but how can do that via selected rows in data grid.