protected override object GetEditObject(GridRecord row) { if (rptFacade == null) { rptFacade = new ReportViewFacade(this.DataProvider); } object obj = rptFacade.GetRptViewUserSubscription(this.GetUserCode(), row.Items.FindItemByKey("ReportID").Text, decimal.Parse(row.Items.FindItemByKey("Sequence").Value.ToString())); if (obj != null) { return(obj as RptViewUserSubscription); } return(null); }