Hello can someone teach me how to delete the selected item in data grid?

please i really need it. thanks.

Recommended Answers

There's a property for the datagrid called AllowDelete. Set that property to True.

Otherwise, it will not allow the user to delete data.

Jump to Post

All 2 Replies

There's a property for the datagrid called AllowDelete. Set that property to True.

Otherwise, it will not allow the user to delete data.

you can use this code: hope it works.

set conn = new adodb.connection

conn = "your connection string"
set rs = new adodb.recordset

rs.open "Delete * from tablename where columnname = '" & Listview1.listitems.text & "',conn,3,3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.