How to make the DataTable Editable

How should I code to realize the functions that :

 The 'Date' column can not be edited, just show the date (the dates serve as indicators for the users).

 The 'Price' column can be edited, specifically the user can type in the price value according to the date in the left side cell.

  After the user finished type in all the prices value. Then the user can click a button, which will make the table's data pass back to the original source data and substitute the original one.