Onrowupdating not called

w=800" src="https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=800&h=359" alt="Debugger Inside Grid View Row Updating Event" width="800" height="359" class="size-full wp-image-328" srcset="https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=230" src="https://taditdash.files.wordpress.com/2014/06/gridview-on-browser.png? w=800" alt="Grid View on Browser" class="size-full wp-image-335" srcset="https://taditdash.files.wordpress.com/2014/06/230w, https://taditdash.files.wordpress.com/2014/06/gridview-on-browser.png? w=416" src="https://taditdash.files.wordpress.com/2014/06/gridview-cell-showing-updated-value.png? w=800" alt="Grid View Cell Showing Updated Value" class="size-full wp-image-331" srcset="https://taditdash.files.wordpress.com/2014/06/416w, https://taditdash.files.wordpress.com/2014/06/gridview-cell-showing-updated-value.png?

If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).

(Note, in the gridview the Enable View State="False" - if I set it to True I get the standard "Failed to load viewstate. error) One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event...

Now you can ask questions directly to me on my new site ASPForums.

Hi All, In above written code only EDIT event is being fired & that is only once after that UPDATE, CANCEL no event is being fired. All I want to do is change the Grid Row Color on the basis of the value entered in QTY field.

Also, and im no exception catching expert, it seems that your try catch blocks are a bit general.

Storing datatable in View State is not a good practice as it increases the size of your page and reduces the performance, also View State can be deciphered on the client side, so the Data Table is not secure.

Button_Comments Set Comments = @Comments Where Logd In Username = @Logd In Username and View Preference = 'Public' and Comments = @Comments and Btn ID = @Btn ID; thnks again u wer right...

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 have set the requisite attributes in the Grid View tag.

i thought i had binded it in postback n removed it frm page load but after looking at the code again got to know wat was the mistake....

I already spend 2 days trying to solve this issue but no luck on how to solve this.


Leave a Reply