WPF DataGrid source updating on cell changed

后端 未结 4 1674
走了就别回头了
走了就别回头了 2020-12-28 15:24

I am new to the WPF ,and i use it to build a point of sale system.

I have a DataGrid control in the main window bound to an ObservableCollection

4条回答
  •  有刺的猬
    2020-12-28 15:50

    Apply the UpdateSourceTrigger=LostFocus to each binding. It worked like a charm for me.

    
    

提交回复
热议问题