Double click to edit the row in a table or edit icon

I have a dashboard with a few tasks in a laboratory application, and each task has a large number of data displayed in the data grid. I need to implement the edit functionality of a record. What is the best way to do it?

  1. Double click the row to make it editable?
  2. Provide a edit icon in the end of the each record?