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:
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?
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?