Information générale
Catégorie:
The Mere Mortals .NET Framework
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement