Because the style is applied to DataGridRow, not DataGrid.
You shold update ContextMenu property of each row.