Hi,
I have a gridView with RowDataTemplate which has a UserControl:
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<CptyManagement:CptyView DataContext="{Binding}"/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
I'm trying to get the UserControl instance of the selected row.
I get the selected row by
var row = (GridViewRow) gridView.ItemContainerGenerator.ContainerFromItem(gridView.SelectedItem);
But I couldn't get the UserControl from the Template.
Can someone help?
Thx,
Oren
I have a gridView with RowDataTemplate which has a UserControl:
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<CptyManagement:CptyView DataContext="{Binding}"/>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
I'm trying to get the UserControl instance of the selected row.
I get the selected row by
var row = (GridViewRow) gridView.ItemContainerGenerator.ContainerFromItem(gridView.SelectedItem);
But I couldn't get the UserControl from the Template.
Can someone help?
Thx,
Oren