This is a migrated thread and some comments may be shown as answers.

Remove an item from the nested child grid

0 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 10 Jan 2013, 01:14 PM
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?

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Sergey
Top achievements
Rank 1
Share this question
or