Hi, is there a way to disable (enable= false) a specific cells in xamdatagrid, so that all those cells in the same row would still be enabled??
a code sample would be Appreciated
Thanks
In this case, the easiest way is to handle the EditModeStarting event and cancel it (e.Cancel = true;) This way you would prevent the cell from going into edit mode according to the runtime condition.
Hi Alex, thank u for the speedy answer, but i think i didn't axplained what i need specificly enough.
the data which i'm preesenting in the xamdatagrid is being loaded dynamically at run tume. in the code i'm performing checks which determine which cells would be editable, and which won't. It's possible that in the same column there would be editable, and non editable cells, and the same goes for rows.
I need to be able to control editabilty of cells specific for each cell.
Hello,
You can set the AllowEdit property of the specific field's settings to false. Another way would be to create a style for the CellValuePresenter and set the IsEnabled property to false if you want to have a disabled look and feel.