delete the highlighted row
ADODC
DATAGRID
MYSQL
Shodow
3
Junior Poster
Recommended Answers
Jump to PostTry this.....
Dim conn As New ADODB.Connection Dim rec As New ADODB.Recordset Private Sub cmd_delete_Click() Dim rResult rResult = MsgBox("Do you want to delete the record", vbYesNo) If rResult = vbYes Then conn.Execute "Delete * from Employee where EmployeeID =" & DataGrid1.Columns(0).Value Set DataGrid1.DataSource = Nothing Set …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.