<igDP:XamDataGrid xmlns:igDP="http://infragistics.com/DataPresenter" Name="gridFields" GroupByAreaLocation="None" DataSource="{Binding Class1View}" Grid.Row="2" AutoFit="True" IsSynchronizedWithCurrentItem="True"> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="Name" Label="Field"/> <igDP:Field Name="Class2View"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> <igDP:FieldLayout> <igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings LabelLocation="Hidden" /> </igDP:FieldLayout.Settings> <igDP:FieldLayout.Fields> <igDP:Field Name="Name"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="False" AllowDelete="False" AllowFieldMoving="No" /> </igDP:XamDataGrid.FieldLayoutSettings></igDP:XamDataGrid>
public class Class1 { ... public Class1() { m_class2View = new ListCollectionView(...); } public string Name { get; set; } public ListCollectionView Class2View { get { return m_class2View; } }}public class Class1 { ... public Class1() { m_class2View = new ListCollectionView(...); } public string Name { get; set; } public ListCollectionView Class2View { get { return m_class2View; } }}public class Class2 { ... public Class2() { m_class3View = new ListCollectionView(...); } public string Name { get; set; }}
Given something along the lines of above (where Class1View also is a ListCollectionView), it seems that CurrentItem of List1View is updated as expected, however Class2View.CurrentItem always seem to remain null.
Is there something additional that needs to be done to allow it to work also at the second level?
I'm using 9.1 version
Hello,
I had a discussion with the development team on this and this is by design. However, we are considering expanding this functionality - adding ability to set the child collection view's position when the active record changes. The other way around will not be possible at this point.
I am going to create a support case for you so that you can be notified when this is implemented and the service release for it is out.
Was any progress made on this? I really would like to be able to bind to a current item of a child collection.