Gridview rowupdating was not handled

6854933580_2c8b688306_z

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.

(also I used a static counter to see how many times the event gets fired when clicking on the Grid View delete button, which was also confirmed it that it's counting 2 per each click). please help ok, just in case anyone else is facing events getting triggered twice (for any reason), and getting the infamous "Deleted row information cannot be accessed through the row." exception, I wrote a method that prevents the duplication (unorthodox but it works).

A number of UK festivities such as the Brownsea Island event where the 21st Scout Jamboree and World Scout Jamboree were born.

But the funny part is (for me) the event turned out to be inconsistance in its behaviour (i.e. And if someone else also facing similiar inconsistance behaviour, I'd advice to do like what I'll hopefully do; which is letting the user select the rows and clicks on a button (outside the grid) to delete them instead of embeded delete button within each row. Seconds Private Function Ok2Delete(By Val p Row As String) As Boolean If Session("Row Index") Is Nothing Or Else _ (CInt(Session("Rowindex")) = p Row And Also Date Time. This is a known issue and we are investigating fixing this in the next service pack.

Note: the example above shows how you can pass a value of another column on the same row that you wish to delete (ex: item_id is a field of another column in the same row) to your event handler that can help you delete a record from the database. NET in case anyone needs it: Private Function Ok2Delete(By Val p Row As String) As Boolean If Session("Row Index") Is Nothing Or Else _ (CInt(Session("Rowindex")) = p Row And Also Date Time. For the time being you could use the following work around.

One obvious workaround is to change the button type to a regular button or a link button.

If you need an Image Button, then you can put an Image Button in a Template Field.

Here is what I'm doing: 1- my test Page_Load method 2- the Grid View has a Delete Command Field.

You must have an account to comment. Please register or login here!