[NotSupportedException: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList(). For ASP.NET WebForms you can bind to the result of calling ToList() on the query or use Model Binding, for more information see http://go.microsoft.com/fwlink/?LinkId=389592.]
System.Data.Entity.Infrastructure.DbQuery`1.System.ComponentModel.IListSource.GetList() +57
System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource, String dataMember) +9797917
System.Web.UI.WebControls.ReadOnlyDataSource.System.Web.UI.IDataSource.GetView(String viewName) +44
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +136
Telerik.Web.UI.RadGrid.GetData() +81
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +61
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
Telerik.Web.UI.RadGrid.DataBind() +21
Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2198
Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +126
System.Web.UI.Control.LoadRecursive() +61
System.Web.UI.Control.LoadRecursive() +134
System.Web.UI.Control.LoadRecursive() +134
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693
|