Using VB.NET 2005, I am trying to update a primary key column that is set to AutoNumber.
I can use this code
Dim drNew As DataSet1.tablerow
drNew = Me.DataSet1.nameoftable.NewnameoftableRow
drNew.Item("NameofColumn") =
Me.DataSet1.nameoftable.nameofColumn.AutoIncrement
But this does not actually set the value of the field.
Also I want to make sure I can delete rows and then re-add new ones.
I can use this code
Dim drNew As DataSet1.tablerow
drNew = Me.DataSet1.nameoftable.NewnameoftableRow
drNew.Item("NameofColumn") =
Me.DataSet1.nameoftable.nameofColumn.AutoIncrement
But this does not actually set the value of the field.
Also I want to make sure I can delete rows and then re-add new ones.