Since I don't know enough about the underlying code responsible for calling the Row Updating event, I'm not sure how to debug this or what things to try.The only thing I can see that I'm doing differently from the other Grid View is I'm calling the Load() method: Sql Command my Command = new Sql Command(my Query, cn); Sql Data Reader my Reader; my Reader = my Command. I'm writing a custom control that will automatically wrap controls in an Update Panel dynamically at run-time. The Grid View control resides in a User Control which is referenced in an page that is housed inside a Master Page. I've added some events: Row Editing = new Grid View Edit Event Handler(Grid View Membership Inherited_Row Editing); Row Canceling Edit = new Grid View Cancel Edit Event Handler(Grid View Membership Inherited_Row Canceling Edit); Row Updating = new Grid View Update Event Handler(Grid View Membership Inherited_Row Updating); Row Updated = new Grid View Updated Event Handler(Grid View Membership Inherited_Row Updated); I have Row Edit enabled with Auto Generate Edit Button = true; When I press the "Edit" Button, the Upating Event fires. Custom Validation Control Event Fires Twice in Grid View I have a gridview with a custom validation control in it.
It's like the browser just isn't recognizing when I click the update button for this particular Grid View, but works fine for another similar Grid View.I have a simple Grid View bound to a Data Table at runtime.For some reason when you click "Edit" to edit the contents of a row, then "Update" the Row Updating event is never called (i.e.NET website, so I'm a bit embarassed to show this code. I have to paste a lot of code to show what I've done, sorry in advance. I tried to to set the ID of the user control on the page load of the control (this. The user enters data and clicks the 'update' link. The Row Updating event fires fine , but gv2_Row Updated does not fire? Dynamically loading user control to a gridview Hello, I know there are many posts about loading user control dynamically and events which not fire. The difference in my example is that I am loading the user control into a specific line in a grid view after the user clicked on a button. I have a Grid View that I'm databinding to custom objects. When not in edit mode, the user control displays read only values.
i ve written code like this Drop Down List ddl1= (Drop Down List)grd Validations. I've tried Image Button (which has known issues), Link Button, and just plain old vanilla Button.