Click or drag to resize

MapperExtensionKernelRowSetDefaults 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
C#
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
C#
IField.Value = val;
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
C#
IField.DefaultValue = val;
and returning
C#
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(
	IMapper sender,
	EAPEventArgs e
)

Parameters

sender
Type: NetQuarry.DataIMapper
The event's sender.
e
Type: NetQuarryEAPEventArgs
Event arguments.
See Also