Validation on non visible datagrid

2010-05-10 Thread Stephen Price
Hey all, Not sure where to go with this one. I have a datagrid on a tab displaying some data and some validation which works fine. The same data is displayed in a second tab in another datagrid (different layout). I'm not sure how to trigger the validation on the second tab/datagrid. If user enter

Re: Validation on non visible datagrid

2010-05-10 Thread Miguel Madero
Could you consider using INotifyDataErrorInfo or at least IDataErrorInfo? This scenario is trickier with ValidatesOnException. INotifyDataErrorInfo is the best way to do it and there're no changes needed to your bindings (as you need to for ValidatesOnException and IDataErrorInfo) -- Miguel A. Ma

Re: Validation on non visible datagrid

2010-05-10 Thread Chris Anderson
How are you implementing validation? Data annotations, or manually? If you're using Silverlight 4 and doing it manually, then Miguel's response is probably best. If you are using data annotations, then use the Validator class to validate the selected item in the DataGrid. But in Silverlight 3 +

Re: Validation on non visible datagrid

2010-05-10 Thread Miguel Madero
AFAIR SL3 supports IDataErrorInfo, which should also solve this problem. -- Miguel A. Madero Reyes www.miguelmadero.com (blog) m...@miguelmadero.com ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/lis

Re: Validation on non visible datagrid

2010-05-10 Thread Stephen Price
Silverlight 3 (at the moment, not sure when the schedule to upgrade to 4 is yet). We're using Data annotations though so will have a look at the Validator class. We're using CSLA so it was tricky getting it working. One thing I've noticed is that when you get an error in the datagrid it won't let

Re: Validation on non visible datagrid

2010-05-10 Thread Miguel Madero
Has been a while without using CSLA, but have a look at IDataErrorInfo. I think CSLA already uses it. Once you moved to IDEI it will be easier to move to INDEI. I don't think that would solve the issue the lock, but at least it would solve the original issue you mentioned on this thread. On Tue, M