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

[Solved] Binding withing GridViewDataColumn Template is of different Type

1 Answer 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hans Notelteirs
Top achievements
Rank 1
Hans Notelteirs asked on 02 Sep 2009, 07:28 AM
Hi,

I'm having a problem databinding within a GridViewDataColumn Template. Here is the situation.
I have an Employee Class which has a list of SheduleActivities. This activity is like an appointment in outlook (startdate, endate, ...)
To display the activities of an Employee in the grid I made a SheduleWeek class, which has the properties Monday, Tuesday, .. of the type SheduleActivity. I first get the needed employees, create the SheduleWeeks with the employees and use the list of SheduleWeek as my ItemsSource.
 
 var itemsSource = medewerkers.Select(o => new SheduleWeek(o)).ToList(); 
 planningGrd.ItemsSource = itemsSource; 

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 02 Sep 2009, 07:59 AM
Hi Hans Notelteirs,

Basically you are binding the grid to a list of SheduleWeek which has properties Monday, Tuesday, etc.
The thing that I could not understand is the actual problem that you are having?

Could you paste your XAML code so that we can get a better understanding of your scenario and provide a solution?  

Best wishes,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Hans Notelteirs
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or