Start Rowupdating event of gridview

Rowupdating event of gridview

For a while now I’m trying to figure out why my method, triggered by the Grid View.

(Note, in the gridview the Enable View State="False" - if I set it to True I get the standard "Failed to load viewstate. error) One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event...

First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.

But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.

Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.

event is raised when a row's Update button is clicked, but after the Grid View control updates the row.

All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.

Check out what I’m trying to do, maybe you can help?

In this article I will explain how to edit master-detail form using Grid View and Details View control in ASP.