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

Re: Adding New Row, Set Value by Cor

Cor
Sun Feb 03 23:21:11 CST 2008

Joe,

An added row is always the last one in a datatable.

Cor

"Joe" <delphi561@cox.net> schreef in bericht
news:207d04c2-48d2-41fc-ad48-b15015b13679@q39g2000hsf.googlegroups.com...
> 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