Solved

Infragistics WPF XamDataGrid binding to a class property

Posted on 2012-12-31
1
1,800 Views
Last Modified: 2013-01-05
I with to replace a WPF ListView control with an Infragistics WPF XamDataGrid.

 I am binding to a class Employee that includes a class property of type Address.  However, whilst the ListView has no problem binding to any property within the class (e.g. Address.Postcode), the XamDataGrid displays the Address class name and not the Address.Postcode property value

        <ListView
            <ListView.View>
                    <GridViewColumn DisplayMemberBinding="{Binding Surname}"
                    <GridViewColumn DisplayMemberBinding="{Binding Address.Postcode}" />

       <igDP:XamDataGrid >
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout>
                             <igDP:Field Name="Surname"   >
                             <igDP:Field Name="Address.Postcode"   >


Where am I going wrong?
0
Comment
Question by:ccravenbartle
1 Comment
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 38733786
Hi,

Please use Key Property not the name
You can follow the following url:
http://www.infragistics.com/community/forums/t/57686.aspx
http://www.infragistics.com/community/forums/t/67603.aspx

Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now