The following code throws: There is no row at position 54. This happens only when a new record is inserted. In edit mode it works fine.
row = Me.StockTranBindingNavigator.BindingSource.Position
Me.DataSet1.Tables(“StockTran”).Rows(row).Item(“CostPrice”) = “1275”
do something like :