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
Hello Peter,
Thank you for your post. I have been looking into it and I suggest you see this forum thread:
http://blogs.infragistics.com/forums/p/28388/112945.aspx
where a similar thing is discussed.
Feel free to write me if you have further questions.
Hi Stefan,
Thank your for the link, now I understand the underlying issue. Do you have any suggestions how I should go about this? What's the original intended use? Just listen to the selected rows collection's events?