Adding New Row, Set Value

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi,

I am using the BindingNavigator control on my WindowsForm.
When I click the '+' button, it appears that the program automatically
adds another row to the datatable in the underlying typed dataset -
fine.

I need to set the value for one of the columns
programmatically. How do I reference this newly created row? This
must be done before I call Update to send it to the database.

Private Sub bnEmploymentAddNewItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
bnEmploymentAddNewItem.Click

??? = iPersonID

End Sub

Can someone help me with the syntax for referencing this newly
created row so that I can set the value for the column?


J
 
Back
Top