0

I wanted to make the particular row at data grid as a non editable filed using WPF.so please help me out

nagendra
  • 1
  • 1

2 Answers2

1

You can make the cell non-editable by setting the property IsReadOnly for that column as true. Also, you can disable the entire datagrid to be non-editable by setting this property to true. But this property is not there for DatagridRow, you have to create your own Depenedency property and bind to that property through style of DataGridRow. You can refer to this sample for disabling particular row in datagrid - Disable row in dataGrid

Rohit Vats
  • 79,502
  • 12
  • 161
  • 185
1

Here is a way how to disable it via triggers and value converter. Probably it will help you

Community
  • 1
  • 1
Artiom
  • 7,694
  • 3
  • 38
  • 45