System.ArgumentException: Value does not fall within the expected range.

Hi,

I''m having this error and can''t find a solution (view image for full information).

Thank !

grid_error.zip

5 Replies

AD Administrator Syncfusion Team September 2, 2006 11:21 PM UTC

Are you using multipple threads?

This is likely some kind of threading issue. You can only interact with the grid on the thread that created it. In your code, you can do grid.InvokeRequired checks to see if you need to call grid.Invoke to make sure the call into the grid is being done on the proper thread. Here is a kb article on this. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=78


AD Administrator Syncfusion Team September 5, 2006 03:31 PM UTC

You are right, it was fixed with

Private Delegate Sub SingleFunc()

_gridcontrol.Invoke(New SingleFunc(AddressOf _gridcontrol.EndUpdate))

Thank !


MM mahdi mdh March 2, 2025 10:20 PM UTC

Please help i also have a similir problem I think happen some times I turn back from market view to game view by navigation back button or shell please help thanks.

  Syncfusion.Maui.Core.Rotator.SliderItemsPanel.MoveSelectedIndex(Int32 index, Boolean isupdate, Boolean isItemChanged) at Syncfusion.Maui.Core.Rotator.PlatformRotator.ValidateIndex(Int32 oldvalue, Int32 value, 



MM mahdi mdh replied to mahdi mdh March 2, 2025 10:22 PM UTC

at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr) at ABI.Microsoft.UI.Xaml.Controls.IContentPresenterMethods.set_Content(IObjectReference _obj, Object value) at Microsoft.UI.Xaml.Controls.ContentPresenter.set_Content(Object value) at Syncfusion.Maui.Core.Rotator.SliderItemsPanel.MoveSelectedIndex(Int32 index, Boolean isupdate, Boolean isItemChanged) at Syncfusion.Maui.Core.Rotator.PlatformRotator.ValidateIndex(Int32 oldvalue, Int32 value, Boolean restrictAnimation) at Syncfusion.Maui.Core.Rotator.PlatformRotator.PlatformRotator_Loaded(Object sender, RoutedEventArgs e) at ABI.Microsoft.UI.Xaml.RoutedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)



KP Kamalesh Periyasamy Syncfusion Team March 4, 2025 02:20 PM UTC

Hi mahdi mdh, 
 

We have reviewed your query and tested the MAUI SfRotator control with navigation. However, we were unable to reproduce the reported issue on our end. We have attached the tested sample below. 

 
To assist you further, could you please share a simple reproducible sample? This will help us investigate the issue better and provide a more accurate solution. 

 
Looking forward to your response. 

 
Regards, 

Kamalesh P 


Attachment: RotatorMaui_a5fa35a3.zip

Loader.
Up arrow icon