Trying to come up with best strategy for DataGrid entry validation
Using DevForce verification features.
1. When dataentry happens in a grid and entity has "immediate" validation (on property set) - I get feedback and it is all nice.
When I run verification LATER (before save) and need to check for duplicates in grid (for example) I don't get visual clues. From what I learned - DataGrid shows validation errors only while in edit mode and it actually locks you on that bad row. So, if I run verification and don't get any "red" on DataGrid I can go into grid, click into bad row and get this validation error.
Obviously this is not what I'm after. I want datagrid to reflect validation problem right away. Is there any tips on that? Any tips working with DataGrid?
2. I tried something different. I thought that since entities implement INotifyDataErrorInfo I will just bind something to HasErrors property. I created column in a grid with "error" icon and set it's visibility to show when HasErrors set. It didn't work either, for some reason it can't bind to it (doesn't see this property). I can get to it by casting to INotifyDataErrorInfo but can't figure out how to do it nicely. What I did now is I exposed property "HasErrors" in partial class and flip it on/off during validation. This way it highlights DataGrid row by showing icon.
I don't like this solution...
Is there any better/best way to deal with data entry in a grid?