Solved

Infragistics WPF XamDataGrid binding to a class property

Posted on 2012-12-31
1
1,872 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

762 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