How can I translate data in my datatable from textbox?

I have textbox,and a datatable,when I input data into textbox1 and enter,the datatable''column[0] will get it.if I save it,my database will be update;if I cancel it,then textbox1 and column[0] will empty.How can I do?

Loader.
Up arrow icon