Thursday, November 28, 2013

ASP.NET Gridview not getting new values in RowUpdating() Event

Assuming in your row updating event, you do some editing in your textbox and then click update button. The event in turn saves your modified records to the database. However, when you tried rebinding the datasource of gridview it seems that you didn't get the newly updated values. The simple trick would be to set the gridview property EnableViewState to false. :)

0 comments:

Post a Comment