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, May 11, 2010 at 3:13 PM, Stephen Price <[email protected]>wrote: > 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 you change the selected item, its like it locks the selected item > as the first item that gets an error. I'm really hoping SL4 has a nicer > friendlier datagrid. I've heard it is better so looking forward to the > upgrade. > > > On Tue, May 11, 2010 at 11:34 AM, Chris Anderson > <[email protected]>wrote: > >> 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 >> + manually, I think you're out of luck (I think, but don't know for sure in >> terms of the DataGrid) - handling that sort of situation is just one of the >> big problems with the exception based validation model as it was implemented >> in Silverlight 2/3... >> >> Chris >> >> >> On 11 May 2010 12:59, Miguel Madero <[email protected]> wrote: >> >>> 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. Madero Reyes >>> www.miguelmadero.com (blog) >>> [email protected] >>> >>> _______________________________________________ >>> ozsilverlight mailing list >>> [email protected] >>> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >>> >>> >> >> _______________________________________________ >> ozsilverlight mailing list >> [email protected] >> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> >> > > _______________________________________________ > ozsilverlight mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) [email protected]
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
