0

In XAML, if I create one datagrid, I can assign a name to it and call it within the program. If I create another datagrid after the first one and assign a name such as below, it won't be recognized on the C# side. What do I have to do to make it be recognized in the C# side?

<DataGrid.RowDetailsTemplate>
    <DataTemplate>
          <DataGrid x:Name="secondDataGrid">
          </DataGrid>
    </DataTemplate>
</DataGrid.RowDetailsTemplate>
redvolt
  • 68
  • 6
  • The real question is why would you? – Jonathan Alfaro Jan 06 '20 at 04:58
  • Maybe helpful: [How do I access an element of a control template from within code-behind](https://stackoverflow.com/questions/8126700/how-do-i-access-an-element-of-a-control-template-from-within-code-behind) – AmRo Jan 06 '20 at 05:20

0 Answers0