Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maintence form indexOutOfRange
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01059590
Message ID:
01059837
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform