Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView EndEdit() problem
Message
From
26/06/2007 09:48:34
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01235401
Message ID:
01235641
Views:
18
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
Map
View

Click here to load this message in the networking platform