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

Cannot edit grid cell Q1 2011 Value does not fall within the expected range

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Leslie
Top achievements
Rank 1
Leslie asked on 17 Mar 2011, 07:25 PM
I just installed the new Q1 2011 release for Silverlight, and I can no longer edit a grid cell.  I get an ArgumentException: Value does not fall within the expected range.

This happens if I try to edit by double clicking or by doing a BeginEdit.  The grid is bound to a collection and initially displays fine.

Here is a sample call stack:

>   System.Windows.dll!MS.Internal.XcpImports.CheckHResult(uint hr) + 0x48 bytes    
    System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase obj = {Telerik.Windows.Controls.GridView.GridViewEditorPresenter}, System.Windows.DependencyProperty property, System.Windows.DependencyObject doh = {System.Windows.Controls.TextBlock}) + 0x7c bytes  
    System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase doh, System.Windows.DependencyProperty property, object obj) + 0x127 bytes  
    System.Windows.dll!System.Windows.DependencyObject.SetObjectValueToCore(System.Windows.DependencyProperty dp, object value) + 0xd4 bytes    
    System.Windows.dll!System.Windows.DependencyObject.SetEffectiveValue(System.Windows.DependencyProperty property = {System.Windows.CoreDependencyProperty}, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, object newValue = {System.Windows.Controls.TextBlock}) + 0x35 bytes  
    System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property = {System.Windows.CoreDependencyProperty}, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xe9 bytes  
    System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value, bool allowReadOnlySet) + 0x2ad bytes    
    System.Windows.dll!System.Windows.Controls.ContentControl.Content.set(object value) + 0x26 bytes    
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.SetEditorContent() + 0xce bytes    
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.ShowEditor() + 0x26 bytes  
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.ToggleEditor() + 0x34 bytes    
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.OnCellEditModeChanged(Telerik.Windows.Controls.GridView.GridViewCell cell = {Telerik.Windows.Controls.GridView.GridViewCell}, bool newIsInEditMode = true) + 0x15c bytes    
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.IsInEditModeChanged(System.Windows.DependencyObject target = {Telerik.Windows.Controls.GridView.GridViewCell}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) + 0xb3 bytes 
    Telerik.Windows.Controls!Telerik.Windows.PropertyMetadata.Create.AnonymousMethod__0(System.Windows.DependencyObject d = {Telerik.Windows.Controls.GridView.GridViewCell}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) + 0x283 bytes  
    System.Windows.dll!System.Windows.DependencyObject.RaisePropertyChangeNotifications(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}, object oldValue, object newValue) + 0x51 bytes    
    System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xf6 bytes    
    System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value, bool allowReadOnlySet) + 0x2ad bytes    
    System.Windows.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0xb bytes 
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.IsInEditMode.set(bool value = true) + 0x53 bytes   
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.SwitchCellToEditMode(Telerik.Windows.Controls.GridView.GridViewCell cell = {Telerik.Windows.Controls.GridView.GridViewCell}) + 0x64 bytes   
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.BeginEdit(Telerik.Windows.Controls.GridView.GridViewCell gridViewCell = {Telerik.Windows.Controls.GridView.GridViewCell}, System.Windows.RoutedEventArgs editingEventArgs = {System.Windows.Input.MouseButtonEventArgs}) + 0x2c3 bytes  
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.OnCellMouseDown(Telerik.Windows.Controls.GridView.GridViewCell cell = {Telerik.Windows.Controls.GridView.GridViewCell}, System.Windows.Input.MouseButtonEventArgs args = {System.Windows.Input.MouseButtonEventArgs}) + 0x125 bytes 
    Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs e = {System.Windows.Input.MouseButtonEventArgs}) + 0xde bytes  
    System.Windows.dll!System.Windows.Controls.Control.OnMouseLeftButtonDown(System.Windows.Controls.Control ctrl, System.EventArgs e) + 0x38 bytes 
    System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, int actualArgsTypeIndex, string eventName) + 0x234 bytes 
    [Appdomain Transition]  

1 Answer, 1 is accepted

Sort by
0
Leslie
Top achievements
Rank 1
answered on 17 Mar 2011, 08:38 PM
Sorry, this is an issue with our code and has nothing to do with the upgrade!  It just happened to occur on the same day!

All is working fine again!
Tags
GridView
Asked by
Leslie
Top achievements
Rank 1
Answers by
Leslie
Top achievements
Rank 1
Share this question
or