Single click edit in WPF DataGrid

前端 未结 11 1588
野的像风
野的像风 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:06

     
                            
                        
    
     public void ReachThisMethod(object sender)
     {
         ((System.Windows.Controls.DataGridCell)(sender)).IsEditing = true;
    
     }
    

提交回复
热议问题