Single click edit in WPF DataGrid

前端 未结 11 1556
野的像风
野的像风 2020-11-27 10:47

I want the user to be able to put the cell into editing mode and highlight the row the cell is contained in with a single click. By default, this is double click.

H

11条回答
  •  离开以前
    2020-11-27 11:26

    I solved it by adding a trigger that sets IsEditing property of the DataGridCell to True when the mouse is over it. It solved most of my problems. It works with comboboxes too.

    
    

提交回复
热议问题