Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index out of range error
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01194314
Message ID:
01195792
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform