Error With RIA services

Nov 11, 2009 at 1:40 PM
Edited Nov 11, 2009 at 1:45 PM


I'm trying to set the ItemsSource of a Datagrid to a DomainContext and i'm getting the fallowing error:

"Enumeration has either not started or has already finished. "

This is my code:

EventsApp.Web.DomainLogic.EventDomainContext context = new EventsApp.Web.DomainLogic.EventDomainContext();

grdEvents.ItemsSource = context.Events;

The code works with a ragular data:datagrid but i need support for Hebrew.