Once, you got the values you just need to send them to the database. HTML CODE: C# Code Behind: private void Bind Data() protected void gv Categories_Row Editing(object sender, Grid View Edit Event Args e) protected void gv Categories_Row Updating(object sender, Grid View Update Event Args e) Hello Azam, Thanks for the prompt reply. Find Control("txt Category Description") as Text Box). Regards, Amol I am attempting to get the rowupdate event working with a gridview.
David I suggested that the Row Updating function was being blocked by the . Data Bind() in the Row Command event so that only the Edit command will activate it (take it out of Row Editing). Twice for Row Command (1 for Row Editing and 1 for Row Canceling) and once for Row Editing. I am going to try and create this not as a web application but rather as a website and see if I notice any differences.
Data Bind() in Row Editing, I said nothing about what might happen if you removed it. Then set your breakpoints in Row Command, Row Editing, and Row Updating and we'll see what happens. David OK, I'm offically out of bullets, at least for now. If I get some time, I'll see if I can duplicate this, but I'm suspecting there's something out there that neither of us have looked at yet.
I have a break on the Sub statement for the Row Updating handler ... The Edit and Cancel buttons fire the Row Command event, however, the Update button does not. No breakpoint was triggered when I hit the Update button. I truly appreciate all the suggestions you've given.
This is becoming so frustrating it's getting almost comical. Breakpoints were triggered for the Row Editing and Row Command.
I also don't understand when I select the grid View control and look at the events in the Properties window of Visual Studio 2010 why I see all the proper event procedures listed for each event I expect to use. Data Bind in the Row Command when the Edit Command is invoked and removed it from Row Editing. The code works as I intended it to (and is listed below).
The Edit, Delete and Insert events work as I expect. The markup and code behind are as follows: Hi cpkilekofp; I removed the Insert command button and put in an event for Command to see if the Update button press in the grid View control would trigger the Command event - it did not. My markup and code look as follows and the Update event is not firing: Hi cpkilekofp; I removed the On Row Updating from the Grid View definition - to no avail. David I added a stub for the grid View Row Command event and set a breakpoint. Placed breakpoints at Row Command, Row Editing and Row Updating. Much thanks to cpkilekofp and informaniac for their time and effort in trying to debug this problem for me.How can I obtain the new value in string description? Sql Client; public partial class _Default : System. Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. The Row Update event will load a copy of the product table from the database after successfully updating a row.I am confused at this point on why my markup and code behind is not touching the Row Updating event when Update button is clicked. The routine loading of the product table now happens only on the first pass through the code behind.This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.