In our database tables we have a field isDeleted. This indicates if a record is logically deleted.
There is a Delete-Button on the form. If the user presses this button, the flag should be set, then the data saved. After that the window is closed and the user gets back to the form with the list. The list is built upon a database view with the where-clause "where IsDeleted = 0".
For editing the data I have a detail data form with a ObjectView. On the form there is a RadCheckbox-Control named cbIsDeleted.
The control is bound via the IsChecked-Property to the persistent data.
- If I check/uncheck the CheckBox with the mouse and save the data, the changed value is saved in the database.
- If I want to do the same programmatically, on the GUI the Checkbox will be checked/ unchecked. But when I want to save the data - the changed value for the Checkbox wouldn't be stored in the database:
I tried also:
What's wrong? Should I set some other properties?
Thanks in advance