Remove an item from the nested child grid

1 posts, 0 answers
  1. Sergey
    Sergey avatar
    26 posts
    Member since:
    Jun 2012

    Posted 10 Jan 2013 Link to this post

    In the project "Example_MVVM_Commands" posted here I changed grid view to nested grid view showing list of clubs in the parent grid and players in the child grid. I added delete command for clubs similar as the one for players. When I click delete in the parent grid row, corresponding club gets removed correctly. When I click delete in the child grid row, it goes inside the method:

    public void DeletePlayer(Player player)
    {
        this.Players.Remove(player);
    }

    but Remove method doesn't remove player from the collection and neither it gets removed from the UI. How do you remove an item from the child grid?
Back to Top