Rowupdating event in gridview in asp net
Then, when all the inserting is complete, the user clicks a submit button to insert all the rows from the gridview into a database table. Referencing gridview fields in Row Updating event I have the following code in place. Protected Sub Grid View2_Row Updating(By Val sender As Object, By Val e As System.
To String but ddl Conf is always = "S" - the first item in dropdownlist Where am I wrong? I think you should add the Is Post Back property in Page_Load event if you bind your Grid Vew in Page_Load Event.I have a gridview control and I have added a row click event which causes a post back. I want to use standard controls (Textbox, Dropdownlist) to record the values into a gridview (ie,put multiple rows into the gridview using the controls). I want to update the modified rows to the Database. Thanks Ashok Hi Ashok, the Grid View control has its own mechanism for updating and deleting rows.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.