Invoke code: Exception has been thrown by the target of an invocation / 2-digits-after-the-decimal-point

Hi @Soudios

Please try this,

dt.asenumerable.Where(function(row) not String.IsNullOrEmpty(row("Somme de Ratio").ToString)).ToList().ForEach(Sub(row) row(“Somme de Ratio”)= Math.round(cdbl(row(“Somme de Ratio”)),2))

It is similar to this one,

Thanks

1 Like