Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index out of range error
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01194314
Message ID:
01195792
Vues:
14
Linda,

>I'm working on the screen that allows the user to select a store number and invoice number to create a dataset that is displayed in a data grid. You helped me a couple of months ago to get that going. I decide to use a tabbed page so I cut all my objects from the form, added a tabbed page and then pasted the objects back on the page and added some labels and text boxes and labels on the 2nd page. Now, when I select the invoice number, I get the error: "Index was out of range. Must be non-negative and less than the size of the collection.
>Parameter name: index"
>
>If I remove the text boxes from the tab, the form runs correctly. I don't have any code on the 2nd page except for a refresh when the 2nd tab is clicked. Do I need to do something else to get the text boxes to pick up the value for the currently selected item from the data set?

I recommend rechecking your binding properties...other than that, can you post the stack trace here?

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform