G
Guest
I have a DataGrid bound to a DataTable. I issue a SqlDataAdapter.Update
command to apply the user’s changes to the database. Everything works just
fine. However, in the database (SQL Server) I have a trigger which updates
one of the columns. I want the updated column to display the new value after
the SqlDataAdapter.Update finishes.
I can see in the SqlDataAdapter.UpdateCommand.CommandText that there is a
Select statement after the Update statement. What is this for? I had hoped
that its purpose was to re-retrieve the updated row so that my datagrid would
display any columns changed by the database. Apparently I am wrong. Can you
tell me how to accomplish this? Do I have to re-fill the dataset myself?
command to apply the user’s changes to the database. Everything works just
fine. However, in the database (SQL Server) I have a trigger which updates
one of the columns. I want the updated column to display the new value after
the SqlDataAdapter.Update finishes.
I can see in the SqlDataAdapter.UpdateCommand.CommandText that there is a
Select statement after the Update statement. What is this for? I had hoped
that its purpose was to re-retrieve the updated row so that my datagrid would
display any columns changed by the database. Apparently I am wrong. Can you
tell me how to accomplish this? Do I have to re-fill the dataset myself?