Yorkshireman2
Programmer
In VB6 I used this simple line:
recordset.Resync adAffectCurrent
to quickly reload a single row (the current record) from the current database values into my client recordset so the user can start with latest data, in case another user changed something after this client loaded the recordset and disconnected.
How do I do this in vb.net?
I have so far used a dataAdapter to fill a dataTable; set a Binding Source to this dataTable, set my textboxes and dataGridView source to the Binding Source, then closed the connection, and disposed of the dataAdapter.
I simply want to refresh the current row from the latest database values so the user doesn't waste time editing an out of date value.
recordset.Resync adAffectCurrent
to quickly reload a single row (the current record) from the current database values into my client recordset so the user can start with latest data, in case another user changed something after this client loaded the recordset and disconnected.
How do I do this in vb.net?
I have so far used a dataAdapter to fill a dataTable; set a Binding Source to this dataTable, set my textboxes and dataGridView source to the Binding Source, then closed the connection, and disposed of the dataAdapter.
I simply want to refresh the current row from the latest database values so the user doesn't waste time editing an out of date value.