It *looks* like you're trying to delete a record with an *ID* that matches the *index* of the record in the Grid Vew which is unlikely to work, but it's hard to say without relevant information. Connection = myconnection Msg Box("Do you want to Update", Msg Box Style. I am not psychic, don't know how your Grid View looks like, where it gets its data from, what happens when you debug the code, whether or not the code even compiles, what you see when you step through it with the debugger, what you know or don't know about Grid View. Without all that, I don't understand how you think we can help you. Otherwise, you should create it or find another field in order to unique identify your object.
Parameter name: index Description: An unhandled exception occurred during the execution of the current web request.Such changes made in the rendering phase will not be saved.I get the index out of range exception when compiling my grid view to display a set of orders. Row Index Msg Box("Do you want to Delete", Msg Box Style. Close() Bindgrid() End If Catch ex As Exception Response. Message) End Try End Sub Protected Sub Data Grid Odin_Row Updating1(By Val sender As Object, By Val e As System. Execute Non Query Msg Box("Record Deleted") myconnection. Row Updating Try Dim mycommand As Sql Command myconnection.