473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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.Collectio ns.IList.get_Item(Int32
index) +2435961

Infragistics.WebUI.UltraWebGrid.KeyedObjectCollect ionBase.GetItem(Int32
index) +5

Infragistics.WebUI.UltraWebGrid.KeyedObjectCollect ionBase.InternalRemoveAt(Int32
index) +17

Infragistics.WebUI.UltraWebGrid.ValueListItemsColl ection.RemoveAt(Int32
index) +68

Infragistics.WebUI.UltraWebGrid.ValueListItemsColl ection.System.Web.UI.IStateManager.LoadViewState(O bject
savedState) +317

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

Infragistics.WebUI.UltraWebGrid.UltraGridColumn.Lo adViewState(Object
savedState) +203

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

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

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

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

Infragistics.WebUI.UltraWebGrid.UltraGridLayout.Sy stem.Web.UI.IStateManager.LoadViewState(Object
savedState) +725
Infragistics.WebUI.UltraWebGrid.UltraWebGrid.LoadV iewState(Object
savedState) +118
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+186
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +136
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState)
+224
System.Web.UI.Page.LoadAllState() +439
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1092

Oct 20 '08 #1
0 1420

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew MacIntyre | last post by:
I'm seeing a bizarre situation where IndexErrors are being thrown with "tuple index out of range" error strings. The scenario is something like: l = for a, b in l: ...
1
by: Arben Kryeziu | last post by:
I am getting following error: Persits.Upload.1 error '800a009' Index out of range. /rtdAddItemSave.asp line 27 >> Line 27 would be the one I marked ## <<
3
by: Ken | last post by:
Dear all, I have a beginner of oracle and recently I have a prob with using indexes. I have a table with 5 columns, with no primary key set in the table. An index has created for column 1. I...
14
by: Craig O'Shannessy | last post by:
Hi all, Just thought I'd mention that I really think this problem needs to be fixed. I I'm patching the 7.4RC1 JDBC drivers as we speak due to this optimiser bug, and it's the third time...
13
by: Chameleon | last post by:
I am programming in C++ for 4 years, so I am not a newbie but I am not a very experienced programmer on standard C++ libary. My question is this: Can you tell me one case which an iterator is...
35
by: erikwickstrom | last post by:
Hi all, I'm sorry about the newbie question, but I've been searching all afternoon and can't find the answer! I'm trying to get this bit of code to work without triggering the IndexError. ...
85
by: Russ | last post by:
Every Python programmer gets this message occasionally: IndexError: list index out of range The message tells you where the error occurred, but it doesn't tell you what the range and the...
0
by: muzu1232004 | last post by:
If I have a table t1 with a column a as follows A 1 1 1 1 1 1 1
2
by: Georgy Panterov | last post by:
I am a relatively new python user. I am writing an economic simulation of acard-game. The simulation runs fine for a few iteration but then it gives an error of "list index out of range." The...
1
by: Steffen Stellwag | last post by:
Truely is often better to scan a table in full passing by an index , but if you can force the optimizer to use an index via a hint for testing and comparing the results. But the index in the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.