Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with mmDataGrid
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Problems with mmDataGrid
Divers
Thread ID:
00812216
Message ID:
00812216
Vues:
41
I cut and pasted this code straight from the help file:

private void grdDRURL_Update(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
// Get the item to be updated
this.grdDRURL.EditItemIndex = e.Item.ItemIndex;
// Retrieve the previous Order Detail DataSet
DataSet dsURL = (DataSet)Session["dsURL"];
// Save the DataSet (the DataGrid automatically binds back)
this.boDRURL.SaveDataSet(dsURL);
// Reset the edited item and rebind the DataGrid
this.grdDRURL.EditItemIndex = -1;
this.BindControl(grdDRURL);
}

The problem is the EditItemIndex property is correct before the SaveDataSet call. When I trace through the code behind the SaveDataSet call I can see that in the BindBack method of mmDataGrid the EditItemIndex is -1. This causes and exception to be thrown.
Rip Ryness
International Falls, MN
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform