Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4970
how to refresh xamgrid when itemsource changed?
posted

XamGrid is bound to PagedCollectionView like:

ItemsSource="{Binding DataList,Mode=TwoWay}"

Then In code I remove the one row from DataList like:

DataList.Remove(MyObjectInDataList);

but the UI still has no change. The removed line still there.  I need to reload the whole SL app, then the removed line is gone.

How to make UI sync with its ItemSource?

Parents
No Data
Reply
  • 30945
    Suggested Answer
    Offline posted

    Hello,

     

    I have been looking into the behavior that you are describing and I could not manage to reproduce it. I have created sample application which uses the approach that you have mentioned when I remove an element from the PagedCollectionView, the change is applied to the XamGrid. I have added two buttons that remove using the Remove and RemoveAt methods of the PagedCollectionView in order to remove an item.

     

    Please let me know if you can reproduce the behavior that you have described with my sample application or I have misunderstood you in any way.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

Children