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
250
Standard WPF Binding
posted

Does XamDataGrid support WPF binding style.. E.g. I want one of my fields to be bound to a properties property, in WPF datatemplates I can just go Text={Binding Path=Author.DisplayName} etc.. however when I try the following in XamDataGrid myField Name="Author.DisplayName" it fails to bind?

 

Parents
  • 8576
    Offline posted

    Hi Matt -

    To bind a Field to a sub-property of a record's property, you would need to create and add an UnboundField defintion to the FieldLayout.Fields collection.  Here's an example of an UnboundField definition that binds to the DisplayName property of the record's Author property:

    <igDP:FieldLayout>

         <igDP:FieldLayout.Fields>

              <igDP:UnboundField Name="author_displayname" BindingPath="Author.DisplayName", BindingMode="TwoWay" DataType="sys:string"/>

         </igDP:FieldLayout.Fields>

    </igDP:FieldLayout>

    JoeM

Reply Children