Following Error in this line.
datagridview1.Rows.Clear()
but this line gives error:
Cannot clear this list.
Simply add this line at beginning of your event:
dgv_nameOfGridView.DataSource=false;
Now every time you click it will erase the dgv..