When using a CollectionView in WPF and listening on CurrentChanging I want to cancel the change if the item being selected is not a valid item to select. The problem is I can't find out what item the CollectionView is changing to. If I don't know this I can't validate the item as selectable or not. How do I accomplish this with a CollectionView?
Asked
Active
Viewed 478 times
3
-
Same problem but no solution here: http://stackoverflow.com/q/11472798/620360 – LPL Dec 04 '12 at 17:46
1 Answers
0
Maybe you should prevent the selection of any invalid item. I would use the IDataErrorInfo Interface and bind to IsEnabled Property.

LPL
- 16,827
- 6
- 51
- 95
-
The problem is I have to check validity remotely and I can't poll this information continously. – Andreas Zita Dec 04 '12 at 17:20