RecroGridDynTEntityOnInitNewRec Method

Setting default values for a new entry.

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 6.5.0.24.0221.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