Good day. How programmatically prevent the creation of new rows in data grid? For example:
private void SomeDataGridEvent()
if (MyBoolConditionIsTrue())
Prevent_Grid_Row_Creation_Logic
else
//Do Nothing. The new row is created
Edit1: Note: CanUserDeleteRows must be TRUE. The user CAN add rows, but only if some condition is true.
CanUserAddRows="False"