Welcome to the Xceed Community | Help
Community Search  
More Search Options

Databinding to nested properties

Sort Posts: Previous Next
  •  06-07-2010, 9:14 PM Post no. 27103

    Databinding to nested properties

    Why do I have to do set the DisplayMenberBindingInfo.Path like this when I bind to a nested property in the grid to get the column to refresh correctly when the data is updated?

                    <xcdg:Column FieldName="Issue.IpIssue.MinorCategory.MinorCategoryName" Title="Minor"  ReadOnly="True">
                        <xcdg:Column.DisplayMemberBindingInfo>
                            <xcdg:DataGridBindingInfo Path="Issue.IpIssue.MinorCategory.MinorCategoryName" />
                        </xcdg:Column.DisplayMemberBindingInfo>
                    </xcdg:Column>

    Seems like a bug to me...

  •  06-09-2010, 9:50 AM Post no. 27120 in reply to 27103

    Re: Databinding to nested properties

     

    Hi Mike,

    The DataGridCollectionView does not keep a hard binding with its source for every Item in the list.  That being said, if you want the Data to react to changes you must set the column binding info.


    Xceed - Software Developer and Technical Support
  •  06-09-2010, 5:00 PM Post no. 27132 in reply to 27120

    Re: Databinding to nested properties

    Could I suggest that you guys document this behavior.  Updating your LinqToSql Databinding sample to include this would be a great place.  Having to do this isn't expected if you are used to databinding with other WPF controls.  I probably lost 2 whole days messing with this...
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.