private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { IsModified = true; }