BindingList<SalesPerson> persons=new BindingList<SalesPerson>();
.... code that populates the persons.
CollcetionViewSource cvs=new CollectionViewSource();
cvs.View.CurrentChanged += new EventHandler(CollectionView_CurrentChanged);
public void CollectionView_CurrentChanged(...)
Currentchanged is not executing when i move between record in the XamDataGrid.
It has been a while since you have made your post, in case you still need of support I will be glad to help with this matter. I suppose the other community members can benefit from this answer as well. So my research on your issue shows that the reason that the CurrentChanged event does not fire when you navigate through the records in the XamDataGrid is that theXamDataGrid’s IsSynchronizedWithCurrentItem property is not set to True. You can set this property to True and the event should fire while you move between the Records in the XamDataGrid.
If you need any further assistance please do not hesitate to ask.
Developer Support Engineer
I'm having the same problem as the original poster and I have IsSynchronizedWithCurrentItem set to true. What am I doing wrong?
By the way, what is the correct way to paste code into a post? Sorry for the ugly formatting.
_source; } }
(T)Items.CurrentItem; } }
Items.SourceCollection.OfType<T>().Count() > 0; } }
_dataPager; } }
// Should crash here but this event is never fired