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.

GCC:System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values

Thread ID:

Created:

Updated:

Platform:

Replies:

81119 May 13,2009 11:09 AM May 30,2009 03:59 AM Windows Forms 4
loading
Tags: GridControl
Vladimir Shcherbina
Asked On May 13, 2009 11:09 AM

Hi,

I recently started to get such exceptions in the GCC(see below). My grid has two different child tables and I put it into cache, hide it and switch to another grid in the explorer view. Sometimes, I am getting this exception in the process of grid hiding. Do you have a sample that demonstrates a hierarchical grid with two different children, so I'll be able to reconstruct the situation?
I would greatly appreciate yoour help in this issue.Many thanks in advance for your cooperation.

Best Regards,
Vladimir Shcherbina


************** Exception Text **************
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at Syncfusion.Grouping.RelationDescriptorCollection.get_Item(Int32 index)
at Syncfusion.Grouping.Record.AdjustRecordRowCount()
at Syncfusion.Grouping.Record.Syncfusion.Grouping.Internals.IElementTreeTableSource.GetChildElementTreeTable (Boolean displayOrder)
at Syncfusion.Grouping.Internals.ElementHelper.GetTreeEntries(Element el, Boolean displayOrder)
at Syncfusion.Grouping.Internals.ElementHelper.GetNextElementStepIn(Element el, Int32 cookie, Type finalType, Boolean stepInNestedTables, Table outerTable)
at Syncfusion.Grouping.RuntimeElementsInTableCollectionEnumerator.MoveNext()
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.InternalGetFrozenRows()
at Syncfusion.Windows.Forms.Grid.GridScroll.UpdateScrollbars(Boolean bRedraw, Boolean bOnlyIfDimensionChanged)
at Syncfusion.Windows.Forms.Grid.GridControlBase.UpdateScrollBars()
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.UpdateScrollBars()
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnSizeChanged(EventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Jisha Joy [Syncfusion]
Replied On May 14, 2009 05:43 AM

Hi Vladimir,

Thank you for your interest in Syncfusion products.

Please refer the sample having nested grid with different children. Could you please reproduce the issue in the attached sample?

http://files.syncfusion.com/support/Grid.Windows/Sample/NestedGrid.zip

Regards,
Jisha

Vladimir Shcherbina
Replied On May 19, 2009 11:22 AM

Hi Jisha,

Many thanks for your answer. In our case we have UniformChildList instead of RelatedMasterDetails as RelationKind. Could you send me such example ?
Many thanks in advance for your help.
Best Regards,
vladimir

Vladimir Shcherbina
Replied On May 21, 2009 11:51 AM

Hi,

I need to add an unsaved row to such grid and then switch to another one (without saving the added record). In provided example, GGC discards a newly added row, so if you return to the 1st grid you will not see it. In my case, I need to see the newly added record after hiding the 1st grid and showing it again.
Could you provide such example?
Thanks,
Vladimir

Lingaraj S [Syncfusion]
Replied On May 30, 2009 03:59 AM

Hi Vladimir,

Thank you for your update.

The GetTableControl method and TableDescriptor property used to create the relation in ChildTable. If you need RelationMaster details in the UniformChild relation table, then please try using RelationKind and RelationKey property in GridRelationDescriptor to achieve this behavior.

Please refer the sample in below link.
http://files.syncfusion.com/support/samples/Grid.Windows/Forums/Relation.zip

Please let me know if it helps.

Regards,
Lingaraj S.

CONFIRMATION

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.

;