> this.storeController.Entity = this.storeController.EntityList[0]; > >That gives error: >Error 19 Cannot apply indexing with [] to an expression of type 'System.ServiceModel.DomainServices.Client.EntitySet<Mainstreet.GlasAve.WebQuote.Business.StoreEntity>' > >// home page > public partial class Home : mmPage > { > StoreControllerProxy storeController = new StoreControllerProxy(); > > /// <summary> > /// Creates a new <see cref="Home"/> instance. > /// </summary> > public Home() > { > InitializeComponent(); > > this.Title = ApplicationStrings.HomePageTitle; > this.storeController.GetAllEntities(delegate(object s, EventArgs e) > { > int cnt = this.storeController.EntityList.Count; > this.DataContext = this.storeController.EntityList; > > }); > } > > /// <summary> > /// Executes when the user navigates to this page. > /// </summary> > protected override void OnNavigatedTo(NavigationEventArgs e) > { > } > } >>TIA Bill