 <p>In Private Sub DetailsView1_ItemInserting event I changed </p> <p>Dim txtYearPlant As TextBox = DirectCast(DirectCast(sender, DetailsView).FindControl("YearPlant"), TextBox) </p> <p>TO</p> <p>Dim txtYearPlant As TextBox = TryCast(view.FindControl("YearPlant"), TextBox) e.Values.Add("YearPlant", txtYearPlant.Text)</p> <p>So now the value in the PlantYear textbox is saved to the record.</p>