Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in mmDataGrid* GetCurrentRowPKs, (fix attached)
Message
De
26/05/2007 20:41:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Bug in mmDataGrid* GetCurrentRowPKs, (fix attached)
Divers
Thread ID:
01228743
Message ID:
01228743
Vues:
60
Hi Kevin,

MM v2.4, mmDataGrid and mmDataGridView method GetCurrentRowPKs() method returns an array of object, but actually creates a string[]. This fails if any of the components of the PK are NOT strings ..

Patch:
Index: mmDataGridView.cs
===================================================================
--- mmDataGridView.cs	(revision 4)
+++ mmDataGridView.cs	(working copy)
@@ -604,7 +604,7 @@
             {
                 // Dimension a PK object array to the same length as 
                 // the business object's PK field array
-                PKs = new string[BizObj.PrimaryKeys.Length];
+                PKs = new object[BizObj.PrimaryKeys.Length];
 
                 // Get the value of each field and store it in the new array
                 for (int i = 0; i < BizObj.PrimaryKeys.Length; i++)
Index: mmDataGrid.cs
===================================================================
--- mmDataGrid.cs	(revision 4)
+++ mmDataGrid.cs	(working copy)
@@ -965,7 +965,7 @@
 			{
 				// Dimension a PK object array to the same length as 
 				// the business object's PK field array
-				PKs = new string[BizObj.PrimaryKeys.Length];
+				PKs = new object[BizObj.PrimaryKeys.Length];
 			
 				// Get the value of each field and store it in the new array
 				for (int i=0; i<BizObj.PrimaryKeys.Length; i++)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform