Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error - re-binding a GridView
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01309102
Message ID:
01309127
Vues:
11
>From a ListBox SelectedIndexChanged eventhandler I'm calling a method to re-populate an EntityList of an BO that is the BindingSource for a GridView. But when I call the BO method to repopulate the EntityList the RowDataBound of the GridView fires and I get the following error coming from the BO Entity.
>
>System.Data.RowNotInTableException was unhandled by user code
> Message="This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row."

What is your RowDataBound method. Do you check

if (e.Row.RowType == DataControlRowType.DataRow)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform