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

WPF - RadGridView DataTemplate Selected row

0 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hugo cesar
Top achievements
Rank 1
hugo cesar asked on 04 Oct 2012, 06:06 PM
Hi Telerik Team!!

Sorry to bother you, but one more time I have an issue :S,

I have a RadGridView and one of the columns has a datatemplate (button), i.e. if I select the row 1 and after I click the button from the row 5, the  row 1 keeps selected.

<

 

 

telerik:GridViewDataColumn Header="title" >

 

 

 

 

    <telerik:GridViewDataColumn.CellTemplate>

 

 

 

 

        <DataTemplate>

 

 

 

 

            <telerik:RadButton Content="{Binding Value}"

 

 

 

                Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},

 

 

 

                Path=DataContext.X}"

 

 

 

                CommandParameter="{Binding Number}"/>

 

 

 

 

        </DataTemplate>

 

 

 

 

    </telerik:GridViewDataColumn.CellTemplate>

 

</telerik:GridViewDataColumn>

Thanks.

 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
hugo cesar
Top achievements
Rank 1
Share this question
or