更新时间:2023-02-13 14:30:58
虽然你的问题不明确,但我想你是想尝试从数据库中删除所选行!!!!它直接在删除按钮单击事件中获取所选行的唯一键或主键并发送到deleterecord()函数:
Though your question is not clear, I guess you are trying to delete the selected row from database !!!! Its straight forward in a delete button clicked event get the unique key or primary key of the selected row and sent to deleterecord() function:
deleteRecord(int uniqueKey)
{
//your delete code here
... where table.id==uniqueKey
}