This is a migrated thread and some comments may be shown as answers.

Assigning few columns of grid to dynamic child object

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
srinivasulu
Top achievements
Rank 1
srinivasulu asked on 22 Jun 2016, 03:04 PM

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;

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 27 Jun 2016, 10:18 AM
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.
Tags
Grid
Asked by
srinivasulu
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or