We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in syncfusion.grouping.dll

Thread ID:





20097 Oct 10,2004 05:31 AM Oct 12,2004 05:54 AM Windows Forms 6
Tags: Grouping
Administrator [Syncfusion]
Asked On October 10, 2004 05:31 AM

i am receiving this error: An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in syncfusion.grouping.dll Additional information: Specified argument was out of the range of valid values. whenever i re-assign the datasource of a gridgroupcontrol and using the arrow keys to navigate the gridgroupcontrol. i believe the error is caused primary because when i reassign the datasource, the records is now fewer than the previous assignment, thus the error. any idea how do i resolve this? thanks.

Administrator [Syncfusion]
Replied On October 10, 2004 10:45 AM

I tried to reproduce this in by just changing out a datatable datasource with a new table with fewer rows and columns, but could not get the exception. Maybe I am not following the steps that you are doing. Can you see the problem in this sample. GGCresetData_1551.zip After changing the datasource, you can try setting the CurrentRecord to one in the new table with code like beow to see if that will avoid this problem.
if(this.gridGroupingControl1.Table.FilteredRecords.Count > 0)
				this.gridGroupingControl1.Table.CurrentRecord = this.gridGroupingControl1.Table.FilteredRecords[0] as GridRecord;

Administrator [Syncfusion]
Replied On October 10, 2004 06:16 PM

yes. i am able to reproduce the error. this is how i do it: 1. i hit the down arrow keys 12 times. 2. i click on the button 3. i click on the white area in the gridgrouping control. 4. i hit up arrow once. after going through the above steps, i will get the error.

Administrator [Syncfusion]
Replied On October 11, 2004 03:38 AM

I can see the problem. I will forward this to the development team to see how they want to handle this. The little code snippet above seemed to avoid the problem for me in the sample. Will it work for you until this is a build availble that addresses this issue?

Administrator [Syncfusion]
Replied On October 11, 2004 06:57 AM

the snippet does work when the datasource contain at least 1 record. however, it fails when i re-assign a datasource of 0 records.

Administrator [Syncfusion]
Replied On October 11, 2004 07:31 AM

Try this instead after setting the datasource. this.gridGroupingControl1.TableControl.CurrentCell.SetPositionNoActivate(0, 0);

Administrator [Syncfusion]
Replied On October 12, 2004 05:54 AM

yes. this snippet fixed the problem. hopefully this issue will be fixed in the next syncfusion release. thanks and cheers.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.