0
After I saved my items that are on Datagrid in a database, I would like you to clean up. So I used it as follows:
dg.Items.Clear();
But from there comes that mistake:
Operation is not Valid while Itemssource is in use. Access and Modify Elements with Itemscontrol.Itemssource Instead.
Is it being used or something? How to solve this?
Put the rest of the code, as you are doing to assign the
ItemsSource
– Maicon Carraro