I have a RadGridView bound to a CollectionViewSource and I'm experiencing the problem that the following code does not work while it works flawless with Selector Derived Controls:
var propertyName = ReflectionUtil.GetPropertyName(() => VM.SelectedDocument);
var binding = new Binding(propertyName) { Source = VM };
gridView.SetBinding(RadGridView.SelectedItemProperty, binding);
If I change the binding mode to TwoWay, it works but unfortunately that is not an option in this particular scenario.
var propertyName = ReflectionUtil.GetPropertyName(() => VM.SelectedDocument);
var binding = new Binding(propertyName) { Source = VM };
gridView.SetBinding(RadGridView.SelectedItemProperty, binding);
If I change the binding mode to TwoWay, it works but unfortunately that is not an option in this particular scenario.