We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Dynamically create columns based on array

public class Level
        public long Id { get; set; }
        public long? ParentId { get; set; }
        public Level Parent { get; set; }
        public List<Level> Children { get; set; }
        public string Name { get; set; }
         public Dictionary<string,string> YearSummary{ get; set; }

I want to dynamically create columns for YearSummary field.
Could you please suggest the proper way to do that?

1 Reply

PK Padmavathy Kamalanathan Syncfusion Team December 30, 2019 03:56 PM UTC

Hi Dan Cheremisinov, 
Thanks for contacting Syncfusion support. 
Before we proceed with your query, we need some clarifications 
1. Do you need to update the column values dynamically to the Year Summary field? 
2. Confirm whether you are using “Year Summary” as childMapping field. 
3. Share the code example of TreeGrid Component. 
4. Share the dataSource that you have binded to the TreeGrid Component. 
Please provide more information regarding your requirement so that it will help us to provide the solution ASAP. 
Padmavathy Kamalanathan 

Live Chat Icon For mobile
Up arrow icon