Index was out of range. Must be non-negative and less than the sizeof the collection.

B

biswal.srikant

I've been trying to correct this error for approx 2 days and am
having
no luck.

In a page's button clickevent , i want to bind a infragistic grid
according to two dropdown value.
At the first click it runs correctly, but when change the index of
dropdown and again click that button,
this gives an error message.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out
of range. Must be non-negative and less than the size of the
collection.
Parameter name: index

Exception details
System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32
index) +2435961

Infragistics.WebUI.UltraWebGrid.KeyedObjectCollectionBase.GetItem(Int32
index) +5

Infragistics.WebUI.UltraWebGrid.KeyedObjectCollectionBase.InternalRemoveAt(Int32
index) +17

Infragistics.WebUI.UltraWebGrid.ValueListItemsCollection.RemoveAt(Int32
index) +68

Infragistics.WebUI.UltraWebGrid.ValueListItemsCollection.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +317

Infragistics.WebUI.UltraWebGrid.ValueList.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +121

Infragistics.WebUI.UltraWebGrid.UltraGridColumn.LoadViewState(Object
savedState) +203

Infragistics.WebUI.UltraWebGrid.UltraGridColumn.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +11

Infragistics.WebUI.UltraWebGrid.ColumnsCollection.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +1894

Infragistics.WebUI.UltraWebGrid.UltraGridBand.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +558

Infragistics.WebUI.UltraWebGrid.BandsCollection.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +493

Infragistics.WebUI.UltraWebGrid.UltraGridLayout.System.Web.UI.IStateManager.LoadViewState(Object
savedState) +725
Infragistics.WebUI.UltraWebGrid.UltraWebGrid.LoadViewState(Object
savedState) +118
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+186
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
+224
System.Web.UI.Page.LoadAllState() +439
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1092
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top