Solved

Infragistics WPF XamDataGrid binding to a class property

Posted on 2012-12-31
1
1,922 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Six Sigma Control Plans

623 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