work for edit item and datatable.