This is a migrated thread and some comments may be shown as answers.

Get UserControl from GridViewRow.RowDetailsTemplate

1 Answer 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oren
Top achievements
Rank 1
Oren asked on 29 Apr 2011, 01:34 PM
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

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 29 Apr 2011, 01:36 PM
Hello Oren,

 

Please take a look at the following forum thread. 


Kind regards,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Oren
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or