一篇很不错的关于WPF DataGrid的文章,包含validation https://www.codeproject.com/Articles/30905/WPF-DataGrid-Practical-Examples