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