<
telerikGridView:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<telerikGridView:RadGridView x:Name="RadGridView_Prospect" CanUserFreezeColumns="False" AutoGenerateColumns="False" ItemsSource="{Binding Prospects}"
ShowGroupPanel="False" IsReadOnly="True" AlternationCount="2" AlternateRowBackground="Azure" SelectionMode="Single">
<telerikGridView:RadGridView.Columns>
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="ID" IsFilterable="False" Width="64" />
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name" IsFilterable="False" Width="128" />
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name" IsFilterable="False" Width="128" />
<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Title}" Header="Title" IsFilterable="False" Width="96" />
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>
</DataTemplate>
</telerikGridView:RadGridView.HierarchyChildTemplate>
and I have a button elsewhere on the form. When the user clicks the button i want to be able to access the SelectedItem in the Child Grid but .SelectedItem on the ParentGrid is null and I cannot figure out how to reference the Child Grid from code since x:Name does not make it accessible to code behind nor can I just change x:Name to Name apparently. This does not appear to be an issue when the user double clicks on an Item in the Child Grid since that seems to bubble up to the parent, but SelectedItem does not get set on a single click.