my deletecommand delete all my rows whenever i delete a row..but when i view it again the other rows still there and the i deleted is actually deleted..
here's my code
for da.deletecommand
da.DeleteCommand = New SqlCommand("Delete from Admission_Record WHERE Patient_ID = @Patient_ID", cs)
da.DeleteCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = ds.Tables(0).Rows(bs.Position)(0)
cs.Open()
da.DeleteCommand.ExecuteNonQuery()
cs.Close()
ds.Clear()
da.Fill(ds)