I want to cancel the delete event and not delete the current record. I just want to edit the current record and set the property "IsActive = false".
1.private void MyDataForm_DeletingItem(object sender, System.ComponentModel.CancelEventArgs e)2. {3. Person currentPerson = this.MyDataForm.CurrentItem as Person;4. currentPerson.IsActive = true;5. e.Cancel = true;6. }This code does not work. How can I implement the function?
