i've a problem with deleting record from datagrid. i have few columns in my datatable and all publish on to a grid and under "ID" column there are id nos and they are "NOT" unique. user able to search using this "ID" no. problem comes in deleting records since the "ID" is not unique. if i use following command to delete; it deletes all the records which are having same "ID". but i want to delete only the current row records,
sqlDelete = "DELETE * FROM table1 WHERE ID ='" & form1.dgv1.CurrentRow.Cells(0).Value.ToString & "'"
any help. thanks in advance.