binding data of multiple classes to a single list view

Hi i'm having trouble in binding data of multiple classes to a single list view.

Best Answer

Answers

  • bilawalmuzaffarbilawalmuzaffar USMember ✭✭

    Thanks for your help. I will look into it in detail

  • bilawalmuzaffarbilawalmuzaffar USMember ✭✭

    public class Class A
    {
    public string SomePropertyName{ get; set; }
    public ClassB B{ get; set; }
    }
    Can i use properties of class B in Class A. By Making Class A as Main Class and use both of their properties in single listview.

  • Saraswati_ChandraSaraswati_Chandra USMember ✭✭✭

    @bilawalmuzaffar said:
    public class Class A
    {
    public string SomePropertyName{ get; set; }
    public ClassB B{ get; set; }
    }
    Can i use properties of class B in Class A. By Making Class A as Main Class and use both of their properties in single listview.

    Yes you can :)

  • bilawalmuzaffarbilawalmuzaffar USMember ✭✭

    Thanks alot @Saraswati_Chandra for you help.

  • Saraswati_ChandraSaraswati_Chandra USMember ✭✭✭

    You are welcome :)

Sign In or Register to comment.