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

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

1 Answer 153 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Madhav
Top achievements
Rank 1
Madhav asked on 10 Nov 2009, 09:35 AM
Hi

I'm using a trial copy of RadControls for WinForms Q2 2009 SP1,version 2009.2.9.729 for development

And i get the following Error in WinForms.Gridview

================================================================================================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

/************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
at Telerik.WinControls.RadElementCollection.RadElementEnumerator.MoveNext()
at Telerik.WinControls.UI.GridRowElement.UpdateInfo()
at Telerik.WinControls.UI.GridDataRowElement.UpdateInfo()
at Telerik.WinControls.UI.GridRowElement.Initialize(GridViewRowInfo rowInfo)
at Telerik.WinControls.UI.GridTableBodyElement.UpdateRow(Int32 position, GridViewRowInfo rowInfo)
at Telerik.WinControls.UI.GridTableBodyElement.UpdateRowElements(IEnumerable`1 rows, RectangleF clientRect, Single& y, Int32& position, Int32 startIndex, Int32& added, Single left, Single width)
at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.W inControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)/

================================================================================================

Thanks
Madhav

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 10 Nov 2009, 10:04 AM
Hi Madhav,

Thank you for contacting us. However, the provided information is not enough for us to locate the reported issue. Please, describe the exact steps to reproduce it. We will appreciate if you send us a sample application that reproduces the issue. Thank you in advance for your cooperation.

All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Madhav
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or