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
25
Binding to objects that contain other objects that contain other objects
posted

I am trying to bind a XamDataGrid to an object that contains objects that also contain objects.   Basically the grid must contain all the fields from LineEntry plus some fields from Account and AccountClassification.  As well, some fields will be updated.

I appreciate any and all help on this, as I am still very new to Infagistics and am finding this a little complicated.

Thanks

Tanya

 

Public Class LineEntry  

    Private _id As Guid
    Public Property Id() As Guid
        Get     Set
    End Property 

     Private _account As Account
    Public ReadOnly Property Account() As Account
        Get       
    End Property

    Private _originalAmount As Decimal
    Public Property OriginalAmount() As Decimal
        Get     Set
    End Property

End Class

 


Public Class Account

    Private _id As Guid
    Public Property Id() As Guid
        Get       Set
    End Property

    Private _accountDescription As String
    Public Property AccountDescription() As String
        Get        Set
    End Property

    Private _accountCreationDate As SmartDate
    Public Property AccountCreationDate() As String
        Get       Set
    End Property
   
    Private _classifications As AccountClassification
    Public ReadOnly Property Classifications() As AccountClassification
        Get
    End Property

End Class


Public Class AccountClassification

    Private _id As Guid   
    Public Property Id() As Guid
        Get        Set
    End Property

    Private _classificationType As String  
    Public Property ClassificationType() As String
        Get        Set
    End Property

    Private _classificationCode As Guid
    Public Property ClassificationCode() As Guid
        Get        Set
    End Property

End Class