WPF DataGrid not updating on PropertyChanged

前端 未结 3 852
离开以前
离开以前 2021-01-11 11:27

i\'ve a problem updating my datagrid when clicking the button by using NotifyPropertyChanged. It works if i set the DataGrid.ItemsSource in code behind, but it doesn\'t if i

3条回答
  •  长情又很酷
    2021-01-11 12:15

    I followed up on syned's tip. For me I had to us the Mode as

    Mode=TwoWay
    

    The key here was the

    UpdateSourceTrigger
    

    property.

    Thanks a lot...!

提交回复
热议问题