Can any one suggest me how I can get rowupdating event to fire in such a condition? Also You might have missnamed the control to validate for the required fieldvalidatore. If it does not solve the problem show us ur code so that we can help better In case of client side validations postback itself should not happen. In my case post back is happening and all other events including rowcommand event is firing with the command name as update. Hi, I have a gridview with some template columns and have set Autogenereate Edit Columns="True". But when I add a required field validator to one of the columns in edit item template rowupdating event is not firing. Instead of having Auto Generated Edit button, you can manually use Link Buttons.
It might be because the field is empty which is causing client side validations. Can any one suggest me how I can get rowupdating event to fire in such a condition? As you've insert a validation control, if fires the validation when you click on edit.
When I hit Update, the changes are not saved, and there is no error message. When I hit Update, the changes are not saved, and there is no error message. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires. Yes, I did put the breakpoint at the Row Updating line (and not in the function).
I put a breakpoint on the Row Updating event handler and found that the event is not fired. I put a breakpoint on the Row Updating event handler and found that the event is not fired. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.
The problem might be with the Auto Generated Edit Button.
Here you specify the Command Name for the respective linkbuttons which fires the Row_Editing event for "Edit" command, Row_Updating event for "Update" command and Row_Cancelling event for "Cancel" command. Acording to my experiences of the problem, I think you can solve the problem by trying these steps: 1) Since you've added a reqieured Validator in the Edit Template, have you confirmed that your Update Button's Command Name is "Update"?
I'm having a very hard time understand what would prevent your event from being fired.
Do you have some sort of Java Script functionality that may be stopping it? A common problem people have with Grid Views is understanding when to data bind the data source to the Grid View.
What happens with this is that the source is being created every time the user submits the page.Have you re-written your Grid View_Row Updating event?2) Is there something like Text Box without any values?I have tried to not override in control and instead use delegates like I described in ...Hi, I have a dropdownlist column in gridview, which is databound. Take a look at these examples for your reference: Grid View Insert, Edit, Update and Delete – The Ado.