> protected override void HookPostSave(DataTable dt) > { > base.HookPostSave(dt); > this.oLCCDate.GetLCCDateByPatientId(Entity.PatientId); > if (oLCCDate.DataSet.Tables[0].Rows.Count == 0) > { > oLCCDate.NewRow(oLCCDate.DefaultValues); > //oLCCDate.GetCurrentDataSet(); > oLCCDate.Entity.PatientId = Entity.PatientId; > oLCCDate.Entity.BegDate = (DateTime)Entity.LCCBegin; > oLCCDate.Entity.EndDate = (DateTime)Entity.LCCEnd; > oLCCDate.Entity.EnterBy = mmAppBase.UserMgr.UserID; > oLCCDate.Entity.LCCMonths = 0; > oLCCDate.SaveRow(); > } > } >First just a comment; the hook methods are for your code so there is no value in adding the call to the base method. Have you placed a breakpoint in this method to verify your "if" statement is executing? Also since you are not checking the rules on the SaveRow, you might want to step through that to verify the save isn't failing due to broken rules.