I am trying to bind a List as the database for my RadGrid and I am getting the following error "Cannot find any bindable properties in an item from the datasource" although I have made sure and tested that the data source is returning valid data.
<
telerik:RadGrid
ID
=
"grdTest"
runat
=
"server"
AutoGenerateColumns
=
"true"
ShowStatusBar
=
"True"
OnNeedDataSource
=
"grdTest_NeedDataSource"
>
<
MasterTableView
AutoGenerateColumns
=
"true"
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected
void
grdTest_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
int
ParentRulCode = 2611767;
List<Enrolment> MyEnrol = EnrolmentRepository.GetChildEnrolmentsFromRulCode(ParentRulCode);
grdTest.DataSource = MyEnrol;
}
Here is My Enrolment Class
public
class
Enrolment
{
public
Course MC;
public
Person MP;
public
int
RulCode;
public
DateTime StartDate;
public
DateTime EndDate;
public
string
ProgressStatus;
}