Row updating event in asp net

This can be a useful opportunity to save information to a historical record.

Sometimes using Web Forms controls is not well documented and unintuitive, which is the case with the event, where a lot of information available online is incorrect or misleading. If they do (or if they don’t), then please leave a comment.

In this case, you can use the on Row Updated method to check before and after values for the field you are interested in.

In the example code at the end of this article, notice that I’m checking the state of an imaginary field called ‘Status’.

By the way, if you find the information I’m giving is useful, then have a look at some of the other Web Forms related articles I’ve written.

At this time in 2017, the Web Forms technology is not as commonly used as it once was, but is still relatively prevalent, especially in legacy applications.

Search for row updating event in asp net:

row updating event in asp net-19

To achieve the desired before/after detection behavior, I’ve added a hidden read-only data field in the Grid View markup that will hold the original value of the field. Equals(key Field Value)) { Now that we’ve stepped through the details, let’s look at the Mark Up for the Grid View as well as the methods (in VB. Row Index Dim str Original Ddl Value As String = CType(tmp Row. Text Dim str User Selected Ddl Value As String = CType(tmp Row.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “row updating event in asp net”