daelmo wrote:
Hi Markiemac,
What about this?
protected Load()
{
userCanUpdate = CanUserUpdateThis(userId);
this.theGrid.AllowUpdate = false;
this.saveButton.Enable = false;
// etc ...
}
I know this is very vague, but I don't know what are you really looking for.
This is helpful as I was interested to know if there was a silver bullet at the form level. Since there isn't I'm thinking of the following:
-
For my simple reference data forms, as above.
-
For the complex forms (many tabs, many many other controls) allow the form to be edited, but don't allow it to be saved.
So:
Disable Save & Delete buttons
If the Datasource is dirty, do not allow Saving
On form close, just close the form.
Are there any other strategies that might do?
Thanks