You haven't provided enough information to be given a complete answer, but see the comment from @richard-macCutchan.. "You need to clear the data from the datasource and refresh the grid."
Quote:
i am binding the data into data grid,
..therefore you need to remove the row that you want to clear from the
datasource that you are binding to and
rebind the grid to that amended datasource.
The trouble is we don't know how you have constructed that datasource.
If you are using something that implements IList (e.g. List<t> or ArrayList, etc) then you can Remove the item from the list, possibly using the Index as the means of identifying which item to remove.
If you are extracting the data from a database then you could use the information from the DataGrid row to work out which criteria to put into a WHERE clause to exclude the row you want to clear.
If you actually want to "clear" the row instead of deleting it, i.e. there will be a blank row in your grid, then you will have to replace the data with blanks in your datasource.
Essentially the flow of what you need to do is (pseudo code, untested)
DataView dv;
dv = (DataView) dataGrid1.DataSource;
dv.Delete(i)
dataGrid1.DataSource = dv;
Finally here is a link to the DataView documentation
DataView Class (System.Data) | Microsoft Docs[
^]
If you get stuck then come back with a specific question, and be sure to include the relevant code and information - look to the posting guidelines for that