Updating datagrid

Rated 4.14/5 based on 831 customer reviews

In any case, please see the code I have listed below for my update Data Grid event. Can you post the Action Query and Retrieve Courses functions?With this code, the DB is updated using the old data in the datagrid prior to the users changes, why is this and how can I take the new data out of the grid after the user makes changes? private void courses Data Grid_Update Command(object source, System. We'll get down to the bottom of it somewhere in here.For that, you should use an update transaction as explained below., the grid discards all previous selections and filters, and completely overwrites the old data with the new.In any case, please see the code I have listed below for my update Data Grid event. With this code, the DB is updated using the old data in the datagrid prior to the users changes, why is this and how can I take the new data out of the grid after the user makes changes? private void courses Data Grid_Update Command(object source, System.

If you are using viewport or Server-side the data would be passed to the grid through a datasource and the specifics on how to update each model would be explained in their respective docs.Also, try putting debug info throughout and see where the miscommunication is occurring. Ian "Jon Agiato" wrote: Hi Ian, and thanks for the reply.The application is set up using the layers pattern.Introduction In this article, I am showing selected values of a Data Grid View into Text Box and saving changes into Database.Open Visual Studio 2010 and create a Windows Forms Application.

Leave a Reply