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:
01312545
Vues:
22
>Kevin,
>
>The error in RowDatabound is at the first line in the code after I check if it's a DataRow. The Row Index is zero and the EntityList.Count is 4. That's why I don't understand the RowNotInTable error.
>
>
>    protected void gvLots_RowDataBound(object sender, GridViewRowEventArgs e)
>    {
>        mmGridView gv = (mmGridView)sender;
>        if (e.Row.RowType == DataControlRowType.DataRow)
>        {
>            int count = (int)(LotLineItems.EntityList[e.Row.RowIndex].LCount == null ? 0 : LotLineItems.EntityList[e.Row.RowIndex].LCount);
>
I recommend adding a line of code (before the line that blows up) that retrieves the business object's underlying DataTable and set a breakpoint that allows you to examine its contents.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform