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
2290
XamGrid not refreshed after changing its collection
posted

Hi All,

I am using MVVM and use xamGrid for display of records, i bind the xamGrid in xaml, on page loading i fill the binding collection. That collection shown in grid, than i add an object in collection using a button, object is added in collection, and collection size is increased but xamGrid not show off the newly added object. XamGrid not refreshed after adding new object in collection. Same behavior is shown in sample application.

Regards

Sufyan

xamGridRefreshing.rar
Parents
No Data
Reply
  • 315
    Verified Answer
    posted

    HI Sufyan,

    I have seen your sample. Try using ObservableCollection for PersonList instead "List". Because list will not have the notification behaviour by default.

    I have replaced List with observablecollection in your sample. It works great. Let me know if you still face any issues.

    Regards,

    Pranitha.

Children