WPF DataGrid CellEditEnding - DataSet Not Updating Till Row Lost Focus

后端 未结 5 921
粉色の甜心
粉色の甜心 2020-12-16 14:59

I need to be able to update values of a dataset once a cell loses focus from editing. I know when the cell loses focus (CellEditEnding), but problem is, the actual updating

5条回答
  •  一生所求
    2020-12-16 15:24

    I had a similar problem and none of the "usual" fixes worked...

    What worked for me was to use the overloaded version of CommitEdit() as follows

    DataGrid1.CommitEdit(DataGridEditingUnit.Row, true);
    

提交回复
热议问题