These codes do the same behaviour.
$('#dl').datalist('getRows')[idx] = row; // update the row value
$('#dl').datalist('refreshRow', idx); // and then refresh it
$('#dl').datalist('updateRow', { index: idx, row: row}); // update and refresh it at the same time