This question is locked. New answers and comments are not allowed.
Hi,
I have a RadGridView defined as follows:
In the Behavior I react on the RowLoaded event of the grid. RowLoadedEventArgs contain a Row which should be of type GridViewRowItem. But actually it returns a GridViewHeaderRow with a strange DataContext. Namely the context of the Grid (in my case some ViewModel) and not the actual context of the row. So I have the problem that there is no connection to the actual row which was loaded.
Is this the expected bahavior?
Kind regards,
Stefan
I have a RadGridView defined as follows:
<grid:RadGridView x:Name="externalListGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding Rows}" SelectionMode="{Binding SelectionMode}" ShowGroupPanel="False" IsSynchronizedWithCurrentItem="True" > <i:Interaction.Behaviors> <behaviors:DataGridRowDoubleClickBehavior/> </i:Interaction.Behaviors></grid:RadGridView>In the Behavior I react on the RowLoaded event of the grid. RowLoadedEventArgs contain a Row which should be of type GridViewRowItem. But actually it returns a GridViewHeaderRow with a strange DataContext. Namely the context of the Grid (in my case some ViewModel) and not the actual context of the row. So I have the problem that there is no connection to the actual row which was loaded.
Is this the expected bahavior?
Kind regards,
Stefan
