I’d like to use the UserDeletingRow event to ask the user if he’s sure he wants to delete selected row in the dgv. The problem is I don’t know how to use this event. Plus I’d like to get informations about the selected row so that I can execute a SQL request to delete the matching row in a SQL Compact database.
Thanks in advance!
For update database records get required cell value
for example
Get Record id
object val = dataGridView1.SelectedRows[0].Cells["IdColumns"].Value;