RecroGridDynTEntityOnInitNewRec Method

Setting default values for a new entry.

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 8.5.2.24.0805.1
C#
protected virtual void OnInitNewRec(
	ref TEntity newRec,
	RecroGridRGServiceParams param
)

Parameters

newRec  TEntity
The new record.
param  RecroGridRGServiceParams
The parameter.

Remarks

If the entity is connected to a parent, it sets its key, and if the entity implements the IRecroGridInitNew interface, then the RecroGridInitNew(IRGDataContext, RGClientParam) method is also executed.

Example

C#
protected override void OnInitNewRec(ref Person newRec, RGServiceParams arg)
{
    //Invoke IRecroGridInitNew
    base.OnInitNewRec(ref newRec, arg);
}

See Also