Asp gridview rowupdating event not firing

I have written a code for Grid View Row Updating event. It is firing properly but I think there is a conflict between the Row Updating event and the update command from SQLData Source.

when I click on Update, I get the following error: Here is my HTML code: Grid View is not getting updated.

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.

Execute Reader(); Sigh, I found the problem and I feel like a total idiot now.

Hi, I have tried to google on this topic but can't seem to find a good answer on why the rowupdating event is not firing.

I have converted my edit and delete fields to template fields.

asp gridview rowupdating event not firing-62asp gridview rowupdating event not firing-12asp gridview rowupdating event not firing-50

Diagnostics; public partial class _Default : System. Within my custom control Init event I was examining the Page. Controls collection and taking each control matching my criteria and wrapping it in an Update Panel. I tried to get the Custom Control to react to the On Pre Init event of the page so I could fix things in the way you had suggested. I suspect the fact that I have hid it working at all from within a Custom control ws just luck and really I was probably having lots of issues happening that I didn't even see! I have to make gridview as a templet which contain some 20 column and 5 rows etc.Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.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 even tried dragging another Grid View from the toolbar and coding it up the same, but the new one gives me the same problem as well.

Leave a Reply

  1. Video chat fuck buddy 31-May-2020 13:33

    He was arrested and charged with one count of break and enter, one count of indecent exposure and three other offences.