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
65
XamGrid selected row(s) binding
posted

Hi,

I am looking for an MVVM friendly solution for binding the selected row's data item to the a ViewModel. I was thinking something similar to the XamDataGrid solution below.

<igDP:XamDataGrid>

    <igDP:XamDataGrid.Resources>

    <!-- To bind selection property to ViewModel Item -->

               <Style x:Uid="Style_4" TargetType="{x:Type igDP:DataRecordCellArea}" BasedOn="{StaticResource DataRecordCellAreaQueryResStyle}">

                 <!-- To bind selection property to ViewModel Item !!!! -->

                <Setter x:Uid="Setter_6" Property="IsSelected" Value="{Binding DataItem.IsSelected, Mode=TwoWay}"/>

                </Style> 

     </igDP:XamDataGrid.Resources>

</igDP:XamDataGrid>

 

Any input is helpful!

Thanks,

-Peter

 

Parents Reply Children