This question is locked. New answers and comments are not allowed.
Hi,
Are these statements valid in a WCF call back to populate the grid ? If the message is saying I have to issue a rgvTimes.Clear() it doesn'T make sence as I never had to do this in any of my applications to date.
As this gives me the error as follow and I'm unable to figure out why, where and what I have to look for to solve that problem
Is there something wrong in my code above ? What should I do to understand and see what's going on ?
Are these statements valid in a WCF call back to populate the grid ? If the message is saying I have to issue a rgvTimes.Clear() it doesn'T make sence as I never had to do this in any of my applications to date.
_Times = e.Result;
rgvTimes.ItemsSource = _Times;
rgvTimes.Rebind();
As this gives me the error as follow and I'm unable to figure out why, where and what I have to look for to solve that problem
Items collection must be empty before using ItemsSource.
à Telerik.Windows.Data.DataItemCollection.CheckInternalViewIsNotUsed()
à Telerik.Windows.Data.DataItemCollection.SetItemsSource(IEnumerable source)
à Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass48.<
Bind
>b__47()
à Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
à Telerik.Windows.Controls.GridView.GridViewDataControl.Bind(Object newValue)
à Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsSourceChanged(Object oldValue, Object newValue)
à Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(DependencyObject origin, DependencyPropertyChangedEventArgs args)
à Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<
Create
>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
à System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
à System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
à System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
à Foo.MainPage._Proxy_UpdateTempsCompleted(Object sender, UpdateTempsCompletedEventArgs e)
Is there something wrong in my code above ? What should I do to understand and see what's going on ?