RecroGridDynTEntityOnInitNewRec Method

Setting default values for a new entry.

Definition

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