General information
Category:
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only