Rowupdating event in asp

Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.

To get the Primary Key reference we can use the Data Keys collection of the Grid View.

before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).

Every one can use it to compare the new value with old ones.

After searching long and hard I found a great article that solved my issue.

Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.

Search for rowupdating event in asp:

rowupdating event in asp-63

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

Leave a Reply

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

One thought on “rowupdating event in asp”