This is a migrated thread and some comments may be shown as answers.

System.ArgumentException value does not fall within expected range

1 Answer 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Muhammad
Top achievements
Rank 1
Muhammad asked on 23 Mar 2012, 06:01 PM
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.
  StackTrace:
       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.
       StackTrace:
            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()
       InnerException:

1 Answer, 1 is accepted

Sort by
0
Muhammad
Top achievements
Rank 1
answered on 26 Mar 2012, 02:40 PM
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
Tags
GridView
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Muhammad
Top achievements
Rank 1
Share this question
or