Hi,
I'm using Datagridview in my project. I tried to edit the datas in the datagrid. Here i attached my code. I'm getting this error "Run-time exception thrown: System.ArgumentOutofRangeException - specified argument was out of the range of valid values. Parameter name: index" in edit command. How to solve this? Thanks in advance.
Private Sub dtgProductDetails_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dtgProductDetails.EditCommand
dtgProductDetails.EditItemIndex = e.Item.ItemIndex
strsql1 = "select * from OrderDetails"
adap = New MySqlDataAdapter(strsql1, conn)
fillthegrid()
edt = DirectCast(e.Item.Cells ...
Go to the complete details ...