binding radgrid to sub-collection of objects

2 posts, 0 answers
  1. William
    William avatar
    1 posts
    Member since:
    Mar 2016

    Posted 16 May Link to this post

    So I have this binding problem

    I want to bind a radgrid to List<Class1>

    On the grid I want to display the following columns:





    I also want the Make and Model to be grouped by UserName


    The classes:


        public class Class1


            public Class1()


                Class2Objects = new List<Class2>();



            public string Username { get; set; }


            public List<Class2> Class2Objects { get; set; }




    Public class Class2


                   Public string Make{get;set;}

                   Public string Model{get;set;}



    The issue is I don't know how to bind to the sub-collection Class2Objects property of Class1

    Can this be done




  2. Konstantin Dikov
    Konstantin Dikov avatar
    1739 posts

    Posted 19 May Link to this post

    Hi William,

    Regarding the grouping, I am not sure what you mean by grouping the Make and Model by UserName, because the grouping is performed on a data field. Can you please elaborate on the exact requirement that you have and what is the final result that you are after? 

    Konstantin Dikov
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top