private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { QDOTSDetails1 obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDOTSDetails1; TSFacade tsFacade = new TSFacade(this.DataProvider); string errorCauseGroupDescription = obj.ErrorCauseGroupCode; object errorCauseGroup = tsFacade.GetErrorCauseGroup(obj.ErrorCauseGroupCode); if (errorCauseGroup != null) { errorCauseGroupDescription = ((ErrorCauseGroup)errorCauseGroup).ErrorCauseGroupDescription; } DataRow row = DtSource.NewRow(); row["ErrorCodeGroup"] = obj.ErrorCodeGroupDescription; row["ErrorCode"] = obj.ErrorCodeDescription; row["ErrorCauseGroupCode"] = errorCauseGroupDescription; row["ErrorCause"] = obj.ErrorCauseDescription; row["ErrorLocation"] = obj.ErrorLocation; row["ErrorComponent"] = obj.ErrorComponent; row["ErrorParts"] = obj.ErrorParts; row["Solution"] = obj.SolutionDescription; row["Duty"] = obj.DutyDescription; row["SolutionMemo"] = obj.Solution; row["Memo"] = obj.Memo; row["TsOperator"] = obj.TSOperator; row["MaintainDate"] = FormatHelper.ToDateString(obj.TSDate); row["MaintainTime"] = FormatHelper.ToTimeString(obj.TSTime); (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }