The error is pointing to this line:
myCommand.Parameters("@id").Value = Me.grdProducts.DataKeys(CInt(e.Item.ItemIndex))
Error message is:
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I have done the following trying to solve this problem but nothing yet:
I have added a primary key to my table.
I have added a column to my grid to display the primary key field.
Any suggestions?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only