In datagrid, user click either 'Add' or 'Remove' doesn't toggle the commandDirty flag to true. It is suggested to toggle the commandDirty when user click these buttons. It is valuable to keep track whether the user has changed the data, add new row or remove exisiting row, rather than tracking the select/textbox only.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In datagrid, user click either 'Add' or 'Remove' doesn't toggle the commandDirty flag to true. It is suggested to toggle the commandDirty when user click these buttons. It is valuable to keep track whether the user has changed the data, add new row or remove exisiting row, rather than tracking the select/textbox only.