Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inline update problem?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inline update problem?
Divers
Thread ID:
00856470
Message ID:
00856470
Vues:
43
Here's an error I'm getting when performing an update in the datagrid inline editing process. Line 240, below, is where the error is thrown. Not sure where to start looking at this.

I'm accessing a VFP table in a DBC, w/ character ID field (I've tried int, and int autoinc), no change. Outside ofthis datagrid control, I've had no problems updating VFP records.

Any clues?

TIA,
Chris.



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

Source Error:


Line 238: DataSet dsCompLinks = (DataSet)Session["dsCompLinks"];
Line 239: // Save the DataSet (the DataGrid automatically binds back)
Line 240: this.oCompLinks.SaveDataSet(dsCompLinks);
Line 241: // Reset the edited item and rebind the DataGrid
Line 242: this.Mmdatagrid1.EditItemIndex = -1;


Source File: C:\_dev1\HRMS_Portal\PortalCSVS\HRMS_System\showCompany.aspx.cs Line: 240

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.ArrayList.get_Item(Int32 index) +91
System.Web.UI.WebControls.DataGridColumnCollection.get_Item(Int32 index) +10
OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.BindBack(DataSet ds, String tableName)
OakLeaf.MM.Main.Web.UI.mmWebBindingStrategyDataGrid.BindData(ImmWebBindingDataGrid mmGrid, mmBusinessObject bizObj, Boolean bindBack, mmBusinessStateChangeEventArgs e)
OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.StateChangeHandler(mmBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
OakLeaf.MM.Main.Business.mmBusinessObject.OnStateChange(mmBusinessState bizState, String tableName, Object primaryKeyValue, Object[] primaryKeyValues)
OakLeaf.MM.Main.Business.mmBusinessObject.CallStateChange(mmBusinessState bizState, String tableName)
OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey, IDbDataAdapter dbAdapter)
OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey)
OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName)
OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds)
hrms.portal.HRMS_System.showCompany.Mmdatagrid1_UpdateCommand(Object source, DataGridCommandEventArgs e) in C:\_dev1\HRMS_Portal\PortalCSVS\HRMS_System\showCompany.aspx.cs:240
System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs e) +110
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) +507
OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.OnBubbleEvent(Object source, EventArgs e)
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) +100
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +120
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

chris jefferies
chris@freeranger.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform