Updating dataset using datagrid

The controls in the UI aren’t intimately aware of the command logic they are connected with, and the command logic is not aware of the controls it will be associated with.

Basically Routed Commands works great in certain scenarios, and are prevalent in WPF.

As you can see from the code, I called the Find method to find the row and called the Delete method of the Data Row.

After that I called the Data Adapter's Update method to save the changes to the database table.

As this class class is separated from the View (UI), these classes are relatively straightforward to unit tests.

It enables the user to hook up UI interactions with code without tightly coupling with two.

This is very big problem for us, can you fix them asap?

Last modified 06-Oct-2019 21:20