MarkD
Active member
Happy Memorial Day!
I have an ADO.Net datatable coding question; this may be elementary, but Im stumped...
Is there an easy way (or whats the best way) to retrieve the key of a record you just added to a table? I have the following code... can someone help me fill in the ???
add a new row to the table
Dim drRow As DataRow
drRow = selectedDataTbl.NewRow()
selectedDataTbl.Rows.Add(drRow)
save its ID
iCurrentRowID = selectedDataTbl.???
Thanks,
Mark
I have an ADO.Net datatable coding question; this may be elementary, but Im stumped...
Is there an easy way (or whats the best way) to retrieve the key of a record you just added to a table? I have the following code... can someone help me fill in the ???
add a new row to the table
Dim drRow As DataRow
drRow = selectedDataTbl.NewRow()
selectedDataTbl.Rows.Add(drRow)
save its ID
iCurrentRowID = selectedDataTbl.???
Thanks,
Mark