G
Guest
I'm creating a simple VB.Net application that uses a DataGridView in a form
to show records originating in a Sql database. I have two questions related
to
keeping the data current and synchronized between the DataGridView and the
Sql database.
1) What's the preferred method of invoking the SqlDataAdapter.Update method?
I'd like it to be called anytime the DataTable in my DataSet has changed. I
have added a handler for the DataTable.RowChanged event and am calling it
there.
2) When the data changes in the source Sql Database, how do I propagate
those changes to my DataSet? I seem to remember that the old RecordSet would
do this automatically by declaring a "dynamic" cursor, but I don't see the
equivalent in a DataSet.
TIA
to show records originating in a Sql database. I have two questions related
to
keeping the data current and synchronized between the DataGridView and the
Sql database.
1) What's the preferred method of invoking the SqlDataAdapter.Update method?
I'd like it to be called anytime the DataTable in my DataSet has changed. I
have added a handler for the DataTable.RowChanged event and am calling it
there.
2) When the data changes in the source Sql Database, how do I propagate
those changes to my DataSet? I seem to remember that the old RecordSet would
do this automatically by declaring a "dynamic" cursor, but I don't see the
equivalent in a DataSet.
TIA