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:
01312545
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform