Assigning few columns of grid to dynamic child object

2 posts, 0 answers
  1. srinivasulu
    srinivasulu avatar
    1 posts
    Member since:
    Oct 2015

    Posted 22 Jun 2016 Link to this post

    Hi, 

    I have Activity object which has childActivity which is a dynamic data type.

    DataSource to grid is list of Activity.

    How can assign few columns of grid with values of child object.

    I was trying like below code.

     col.UniqueName = item.Name;

    col.HeaderText = item.DisplayName;
    (col as GridDateTimeColumn).DataField =  Activity.childActivity.Name;

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1530 posts

    Posted 27 Jun 2016 Link to this post

    Hello,

    Please try the approach described in the following scenario. It targets a scenario that is similar to the one you describe.



    Regards,
    Viktor Tachev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top