Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error - Duplicatable
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Database:
MS SQL Server
Divers
Thread ID:
00993787
Message ID:
00994279
Vues:
16
Rick,

>Using MM.Net 1.3, the following causes the error, There is no row at position 0:
>
>1. Start MM Northwind Sample Application (VB)
>2. Select Customer, Orders from the Menu
>3. Click on the Picklist Icon (the first one)
>4. Two TAB keys to go to the first record and to the Company Name (notice how just the Company Name column is selected)
>5. Click on OK

Thanks for the heads up on this one. As it turns out the problem was in the mmDataGrid I changed the GetSelectedRow() method to the following:
public virtual DataSet GetSelectedRows()
{
	DataSet ds = mmAppBase.Factory.CreateDataSet();

	CurrencyManager cm = this.GetCurrencyManager();
	DataView dv = (DataView)cm.List;

	// Copy the structure to the new data table
	DataTable dt = dv.Table.Clone();
	ds.Tables.Add(dt);

	// Copy the rows to the new data table
	for (int i=0; i < this.SelectedRows.Count; i++)
	{
		ds.Tables[0].ImportRow(dv[(int)this.SelectedRows[i]].Row);
	}
	return ds;
}
I'll include this fix in the next MM .NET update.

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