Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Infragistics WPF XamDataGrid binding to a class property

Posted on 2012-12-31
1
Medium Priority
?
2,008 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 2000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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 will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

782 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