Hi, change inner datagrid name
x:Name="{Binding Epreuve}" as
x:Name="Epreuve",
<datagrid x:Name="Epreuve" isreadonly="False" canuseraddrows="True" canuserdeleterows="True" canuserreordercolumns="True" canuserresizecolumns="True" canusersortcolumns="True" canuserresizerows="False" rowdetailsvisibilitymode="VisibleWhenSelected">