Rowupdating event grid view

17-Oct-2018 12:35

I have tried to not override in control and instead use delegates like I described in ...

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).

rowupdating event grid view-63rowupdating event grid view-4

Following code will show you how you can get Row Index, Product ID and Command Name of the button when user click any button in the Grid View. 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.Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.We first of all create a Stored Procedure that gets the Id of an employee as a parameter from the Grid View on whichever row the user clicked. In this event, first we get the datakey value that is the id of an employee of whichever row the user clicked and that id is passed as a parameter to the Stored Procedure. According to the above, in these three operations we use three events of the Grid View for each operation.

Following code will show you how you can get Row Index, Product ID and Command Name of the button when user click any button in the Grid View.

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.

Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.

We first of all create a Stored Procedure that gets the Id of an employee as a parameter from the Grid View on whichever row the user clicked. In this event, first we get the datakey value that is the id of an employee of whichever row the user clicked and that id is passed as a parameter to the Stored Procedure. According to the above, in these three operations we use three events of the Grid View for each operation.

Protected Sub Grid View1_Row Command(By Val sender As Object, By Val e As System.