How can I disable editing cells in a WPF Datagrid?

后端 未结 4 878
你的背包
你的背包 2020-12-24 03:58

I\'m constructing a datagrid in Windows Presentation Foundation, and I have a problem. When a user double-clicks on a cell in my datagrid, the cell goes into edit mode. I wa

4条回答
  •  感动是毒
    2020-12-24 04:58

    I see users in comments wondering how to disable cell editing while allowing row deletion : I managed to do this by setting all columns individually to read only, instead of the DataGrid itself.

    
        
            
            
        
    
    

提交回复
热议问题