Rowupdating is not firing in gridview asp net

Rated 3.91/5 based on 896 customer reviews

So when we change the Command Name property of the buttons to some other text then it will work fine.

Some other Grid Views reserved key words and their default associated events are as follow : “Cancel” – Raises the Row Canceling Edit event.

I don't like to do this however since then, every click on the row causes a postback which I don't really like.

Then in the code behind I have handled the On Row Command event.

Thx Hello Juri, As far as I know grid server events won't fire if we use client-side binding, unless we set the "Enable Post Back On Row Click" property to true. Is there another way for gaining the client-side mechanisms such as asynchronous paging and data fetching (through webservice) and having actions etc.

So one suggestion is to delete the record is, attach a handler to grid's client event and check for the commandname whether it is delete or not. So basically what you're telling me is that if you want to use ajax-enabled grid with client-side binding you have to do EVERYTHING over the webservice. post back just normally to the server as you would expect from a standard grid?

Scenario: Button inside Grid Button Column with Command Name which when fired does some logic.

Problem: The method that supposed to execute on button event(click) was not executing at all.

Leave a Reply