private void dataGridView1_RowValidating(object sender, DataGridViewCellCancelEventArgs e) { if (dataGridView1.IsCurrentRowDirty) { var d = _elencoDestintari[e.RowIndex]; AppRepo.UpdateDestinatario(d); } }