Thnx, i got it working, but i hope there's a better way to do this.
Got the following code:
public void Calculate(DataTable collection)
{
decimal vat = "19.00"
for (int i = 0; i < collection.Rows.Count; i++ )
{
collection.Rows[i][ProductPriceFields.PriceExclBtw.Name] = Convert.ToInt32(priceIncl / (1 + (vat / 100)));
}
}
But the TypedList rows, are readonly. So for each typedlist, i got to do something like:
TypedList.Columns[ProductPriceFields.PriceExclBtw.Name].ReadOnly = false;
Calculate(TypedList);