I was struggling a bit with the Rectangle brushed line between the header and the rows (with Communitytoolkit DataGrid), and it seems like overriding this brush got rid of it:
<SolidColorBrush x:Key="GridLinesBrush" Color="Transparent"/>