The formview fired event itemupdating which wasnt handled best usan dating sites
The problem remains, I still have to click twice before I go to Edit mode and Editing doesn't work. I've found an answer in other forum, and though I didn't find the code of Form View, I've found a Details View implementation and I think in this case it might be similar.I'm trying to insert or update data into a database from detailsview through coding. Without giving a datasource to details view, because it is very easy. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Try removing this line of code and let me know if it resolved your issue.
NET 2.0 most of the examples and tutorials deal with setting the Data Source ID, which buys you a lot of automation that you may not even appreciate unless you’ve done this the old fashioned way.
In this example, we’ll go through a fully featured Grid View with editing, deleting, selecting, sorting, and paging functionality that is manually bound and identify the limitations and some of the workarounds. Sql Data Source, Object Data Source, Linq Data Source, etc) specified in a Data Source ID, the Grid View can automate many functions because, through the data source control, the Grid View on its own can perform the following operations: When you manually bind data to a Grid View, the Grid View itself cannot perform these operations, so they must be implemented in your code.
to my detailsview and used the code you wrote down above.
At first I put all my code in text, then I got the message it was firing the Mode Changing event which wasn't handled so I put that method back as code to use.