TypedMapperExtensionTRowSetDefaults Method |
Fired when the mapper is moving to a new record and has just completed populating defaults.
Immediately following this event it will fire the RowCurrent event.
The intent is to provide an opportunity for programmatically setting defaults to field values.
Generally it is expected that any field values will be set using
IField.SetValue(val, SetValFlags.DoNotMakeDirty, null);
so that the fields are not made dirty (meaning that if no non-default values are ever set then no save will
be attempted. Setting field values using
will make the
fields dirty resulting, eventually, in a save even if no non-default values are ever set. You can also
change defaults by setting
IField.DefaultValue = val;
and returning
e.Result = ExtResults.DataChanged;
to notify the mapper that it should
repopulate from defaults.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public virtual void RowSetDefaults(
T sender,
EAPEventArgs e
)
Public Overridable Sub RowSetDefaults (
sender As T,
e As EAPEventArgs
)
Parameters
- sender
- Type: T
The event's sender. - e
- Type: NetQuarryEAPEventArgs
Event arguments.
See Also