I have several Validation Rules , also I am using MVVM .
I have some “Save” button , and I want to enable in only when I don’t have any datagridrows validating my rules.
How I should do in my
bool CanSaveChanges
{
get { return true; }
}
The datagrid is binded to collection public ICollectionView Customers
Thanks for help.
here a simple example of adding new customer screen , I’m validating the name and Tel.No, the button won’t be enabled until allPropertiesValid property set to true , which means all validations are passed
View
ViewModel