System.ArgumentException value does not fall within expected range

2 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    24 posts
    Member since:
    Mar 2012

    Posted 23 Mar 2012 Link to this post

    Hi all ,i am binding a observable collection to radgridview and when i get the updated collection from database after each 30 seconds it throws the following expcetion.

    if any body has same issue and has resolve this please post nd help me to solve this problem

    System.Reflection.TargetInvocationException was unhandled by user code
      Message=Exception has been thrown by the target of an invocation.
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
           at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
           at System.Delegate.DynamicInvokeImpl(Object[] args)
           at System.Delegate.DynamicInvoke(Object[] args)
           at Messagesxaml.BindingOperation(Object BindingState, Int32 , Action )
      InnerException: System.ArgumentException
           Message=Value does not fall within the expected range.
                at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
                at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
                at System.Windows.UIElement.UpdateLayout()
                at Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsSourceChanged(Object oldValue, Object newValue)
                at Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(DependencyObject origin, DependencyPropertyChangedEventArgs args)
                at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
                at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
                at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
                at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
                at System.Windows.Data.BindingExpression.SendDataToTarget()
                at System.Windows.Data.BindingExpression.SourcePropertyChanged(PropertyPathListener sender, PropertyPathChangedEventArgs args)
                at System.Windows.PropertyPathListener.ReconnectPath()
                at System.Windows.Data.Debugging.BindingBreakPoint.<>c__DisplayClass4.<BreakOnSharedType>b__3()

  2. Muhammad
    Muhammad avatar
    24 posts
    Member since:
    Mar 2012

    Posted 26 Mar 2012 Link to this post

    i was adding groupdescriptor on methodcomplete service call i think that was the issue i remove the group descriptor on method complete serivce event and cleared ,and added new group on property changed event of the collection for which radgrid was binded
Back to Top