Gridview rowupdating event firing twice
Run Execute Reader Tds(Command Behavior cmd Behavior, Run Behavior run Behavior, Boolean return Stream, Boolean async) 987 System.
Run Execute Reader(Command Behavior cmd Behavior, Run Behavior run Behavior, Boolean return Stream, String method, Db Async Result result) 162 System.
This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it. My problem lies in that the click on the Update Image Button posts back, but neither the Row Command nor Row Updating events get triggered.
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.
Page loads, I choose my dropdown value, page loads fine.
What happens with this is that the source is being created every time the user submits the page.
I would recommend trying this out and starting a new thread in the .
NET Forum so that other people can learn from the experience too. -Frinny You may need to turn off validation even if you are not validating anything.
Run(Run Behavior run Behavior, Sql Command cmd Handler, Sql Data Reader data Stream, Bulk Copy Simple Result Set bulk Copy Handler, Tds Parser State Object state Obj) 2294 System.
Finish Execute Reader(Sql Data Reader ds, Run Behavior run Behavior, String reset Options String) 215 System.