This behavior is as expected.
When a fixed header or footer within the grid is focused, the DataGrid current item becomes null.
Workarounds would be to set your button as "Focusable=false" or use the SelectedItem instead of the CurrentItem
When a fixed header or footer within the grid is focused, the DataGrid current item becomes null.
Workarounds would be to set your button as "Focusable=false" or use the SelectedItem instead of the CurrentItem