Hi,
Code Snippet:
BindingList<SalesPerson> persons=new BindingList<SalesPerson>();
.... code that populates the persons.
CollcetionViewSource cvs=new CollectionViewSource();
cvs.Source=persons;
cvs.View.CurrentChanged += new EventHandler(CollectionView_CurrentChanged);
public void CollectionView_CurrentChanged(...)
{
does something....
}
Question:
Currentchanged is not executing when i move between record in the XamDataGrid.
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.
<
="True"
="Immediate"
="FWPGrid"
="FWPGrid_Loaded"
="IGTheme"
="None"
="1"
>
public
<T> _source;
_dataPager;
_source; } }
; }
(T)Items.CurrentItem; } }
Items.SourceCollection.OfType<T>().Count() > 0; } }
> PageIndexChanged;
_dataPager; } }
CollectionViewManager() { _source =
_source =
<T>(); Items =
Items =
.GetDefaultView(Source); Items.CurrentChanged +=
Items.CurrentChanged +=
(Items_CurrentChanged); }
e) {
// Should crash here but this event is never fired
Hello rameshbaburengarajan,
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.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support