Hello. I am receiving this unhandled exception when I attemp to bind an EntityGridView programmatically. If I bind to a standard GridView, it work fine; however, I loose any additional functionality that the EntityGridView provides. I've been debugging for hours and cannot for the life of me get beyond this issue. Below is an example of what I am attempting to accomplish:
aspx:
<data:EntityGridView ID="GridView1" runat="server"></data:EntityGridView>
code-behind:
private void BindData ()
{
PlayerLaxStatsService svc = new PlayerLaxStatsService();
TList<PlayerLaxStats> stats = svc.GetByPlayerIdFromPlayerPlayerLaxStats(1);
this.GridView1.DataSource = stats;
this.GridView1.DataBind();
}
Any help will be greatly appreciated.
Thanks, -Dan