Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
How to Select current row by RecordExpanding Event ?
posted

Hello,
i want to select current row into ActiveDataItem property by recordExpanding Event in xaml.
actually i used event trigger in xaml and i handeld it into ViewModel and i don't want to use ViewModel or Code behind

<igDP:XamDataGrid x:Name="AlarmGrid"
                              DataSource="{Binding Path=Items}"
                              Padding="1"
                              FontSize="11"
                              BorderThickness="1"
                              BorderBrush="#E6000000"
                              ActiveDataItem="{Binding Path=ActiveItem, Mode=TwoWay}">
                <interactivity:Interaction.Triggers>
                    <interactivity:EventTrigger EventName="RecordExpanding">
                        <prism:InvokeCommandAction Command="{Binding RowExpandCommand}" />
                    </interactivity:EventTrigger>
                </interactivity:Interaction.Triggers>