Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGridView EndEdit() problem
Message
De
26/06/2007 09:48:34
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01235401
Message ID:
01235641
Vues:
17
Kevin,

You should know by now I would NEVER do anything unusual or try to cause problems :)

I started chasing through the code to see where the BindingContext[].Position changes. I had a line that set the current cell in the grid while it was still empty (i.e. Rows.Count = 0). It turns out that that command sets the Position to 0, and since there is no data, the datatable is still empty. This seems to be what was giving EndEdit() fits.

I changed my code to not set the CurrentCell and all is fine (after a few other adjustments to make things work like I want).

Thanks,
Jeff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform