Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error - re-binding a GridView
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01309102
Message ID:
01309127
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform