Prevent Save when Validation Errors occur on WPF DataGrid -


currently, have datagrid bound data in viewmodel. have validationrules set rows, , columns. prevent user saving file if there validation errors. using relaycommands class route open, save, etc commands viewmodel.

check below links

disable save button in wpf if validation fails

using wpf validation rules , disabling 'save' button

http://babaandthepigman.wordpress.com/2010/02/14/wpf-commanding-and-data-annotations-validation/

hope helps...


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -