Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maintence form indexOutOfRange
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01059590
Message ID:
01059837
Views:
10
Stuart,

>I am using VS2005 candidate and Mere Mortals .NET Framework 2005. I am trying to create a simple maintenance form similar to the employees form in the sample application, which works until I click the New button then I get the following error.
>
>"Index was outside the bounds of the array" at the line
>"if (this.IsSelected(e.LastRow))"
>
> If I ignore the error it seems to work fine.
>
>I tried to set up an employee Form to see if I could see where I was going wrong, but when I used the Business object generator VS2005 crashed when I checked the checkbox along side the employee table. it works for other tables but not employees.

It looks like you're using the mmDataGrid control...I highly recommend abandoning this control and using the mmDataGridView class instead. Microsoft has compltely replaced the DataGrid with the DataGridView (with good reason) in VS 2005 / .NET 2.0. DataGrid still works, but is best left behind <s>.

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