2
Answers

[WPF] Refresh item on datagrid after update on DB

Roberto Salemi

Roberto Salemi

9y
11.7k
1
Hi,

in my application, I created two button where with a click action I change a value of one property of my list object.

On click:

- I get the item of my datagrid;

- Change value of one property of the objects of my collection

- Update this value on database

- If the update returns me "True", I execute:

dgPlan.Items.Refresh();
but the collection on datagrid is not refresh.

If I launch the research, the new values are shown.

Where is the error?

Thanks.
Answers (2)