473,770 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Argument OutOfRangeExcep tion: Index was out
of range. Must be non-negative and less than the size of the
collection.
Parameter name: index

Exception details
System.Collecti ons.CollectionB ase.System.Coll ections.IList.g et_Item(Int32
index) +2435961

Infragistics.We bUI.UltraWebGri d.KeyedObjectCo llectionBase.Ge tItem(Int32
index) +5

Infragistics.We bUI.UltraWebGri d.KeyedObjectCo llectionBase.In ternalRemoveAt( Int32
index) +17

Infragistics.We bUI.UltraWebGri d.ValueListItem sCollection.Rem oveAt(Int32
index) +68

Infragistics.We bUI.UltraWebGri d.ValueListItem sCollection.Sys tem.Web.UI.ISta teManager.LoadV iewState(Object
savedState) +317

Infragistics.We bUI.UltraWebGri d.ValueList.Sys tem.Web.UI.ISta teManager.LoadV iewState(Object
savedState) +121

Infragistics.We bUI.UltraWebGri d.UltraGridColu mn.LoadViewStat e(Object
savedState) +203

Infragistics.We bUI.UltraWebGri d.UltraGridColu mn.System.Web.U I.IStateManager .LoadViewState( Object
savedState) +11

Infragistics.We bUI.UltraWebGri d.ColumnsCollec tion.System.Web .UI.IStateManag er.LoadViewStat e(Object
savedState) +1894

Infragistics.We bUI.UltraWebGri d.UltraGridBand .System.Web.UI. IStateManager.L oadViewState(Ob ject
savedState) +558

Infragistics.We bUI.UltraWebGri d.BandsCollecti on.System.Web.U I.IStateManager .LoadViewState( Object
savedState) +493

Infragistics.We bUI.UltraWebGri d.UltraGridLayo ut.System.Web.U I.IStateManager .LoadViewState( Object
savedState) +725
Infragistics.We bUI.UltraWebGri d.UltraWebGrid. LoadViewState(O bject
savedState) +118
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+186
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.C ontrol.LoadChil dViewStateByInd ex(ArrayList
childState) +136
System.Web.UI.C ontrol.LoadView StateRecursive( Object savedState)
+224
System.Web.UI.P age.LoadAllStat e() +439
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+1092

Oct 20 '08 #1
0 1437

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

Similar topics

1
4050
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
4107
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
17784
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 have a sql which retrieve rows based on the indexed column: select * from my_table where
14
2247
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 I've had to do this. I would think this bug causes quite a lot of people to evaluate postgres and decide it has awful primary key performance! I love postgres, and hate to think that this could be happening.
13
13411
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 better than index? For me (until now) iterators are very strangely objects because they are useless for me. But since most of members of containers use iterators, I am stumped.
35
29231
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. import shutil, os, sys
85
4320
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 offending index are. Why does it force you to determine that information for yourself when it could save you a step and just tell you? This seems like a "no-brainer" to me. Am I missing something?
0
1674
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
3756
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 strange thing is that it will sometimes run for 10 iterations sometimesfor only a few and sometimes won't run at all (seemingly arbitrary). Here is some of the code: for _ in range(100): handA=deal_hand(DECK) #deals 2 'hole' cards from a DECK...
1
3216
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 above example is not used , because the hint is malformed, if tables in a Select statment are named by aliases you have to specify the alias name in the hint statment , not the table name /*+ INDEX (ICWOIMP PK_ICWOIMP) */ change to /*+ INDEX (A...
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9453
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10254
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9904
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.