Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
"Data source contains no schema data."
posted

Good day,

I get a "datasource contains no schema data" error on my 2010v2 webdatagrid. The biggest problem is that i do have data in the datasource. I have the following errorStackTrace:

[NotSupportedException: Data source contains no schema data.] Infragistics.Web.UI.GridControls.WebDataGrid.CopyFields() +819 Infragistics.Web.UI.GridControls.WebDataGrid.FillFields() +195 Infragistics.Web.UI.GridControls.WebDataGrid.DataBind() +834 GoGoYield.Website_priorities.ShowPrioritiesTab() in D:\ReneM\Perforce\ReneM-Sundio\Logistiek\LC\Sundio MT\Development\V4_0\Application\GogoYield\Website_priorities_priorities.cs:237 GoGoYield.Website_priorities.Page_LoadComplete(Object sender, EventArgs e) in D:\ReneM\Perforce\ReneM-Sundio\Logistiek\LC\Sundio MT\Development\V4_0\Application\GogoYield\Website_priorities.aspx.cs:86 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Page.OnLoadComplete(EventArgs e) +8872202 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2350

The data in the datasource exists of:

var priorities = from accommodationPrio in entities.AccommodationPrios
                             where accommodationPrio.BrandId == intBrandId
                             join accommodation in entities.Accommodations on accommodationPrio.AccommodationId equals accommodation.AccommodationId
                             select new PrioritiesAccommodations
                             {     Priority = accommodationPrio.Priority
                                 , BrandId = accommodationPrio.BrandId
                                 , AccommodationName = accommodation.AccommodationName
                                 , CountryId = accommodation.CountryId
                                 , RegionId = accommodation.RegionId
                                 , DestinationId = accommodation.DestinationId };

wdgPriorities.ClearDataSource();

wdgPriorities.DataSource = priorities;

wdgPriorities.DataBind();

 

Any ideas of what is wrong here?