Roberto Salemi

Roberto Salemi

  • NA
  • 146
  • 141.4k

[WPF] Refresh item on datagrid after update on DB

Mar 3 2015 10:58 AM
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)