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
335
Binding to XML with XPath
posted

When I create <igDP:UnboundColumn Name="Id" Binding="{Binding XPath=@id}"/>, instead of expected value of attribute id, grid shows "System.Xml.XmlAttribute", similarly for expressions that evaluate to elements "System.Xml.XmlElement" is displayed.

Same binding works when used in custom CellValuePresenter (relative to DataItem).

How can I bind to XPath expressions ?

  • 14517
    Verified Answer
    Offline posted

    Hello,

    You can use 

    <igDP:UnboundColumn Name="Id" Binding="{Binding XPath=@id, Path=Value}"/>

    Sincerely,
    Valerie
    Developer Support Engineer
    Infragistics
    www.infragistics.com/support