protected void SetDeathStatus() { Patient ptObj = new Patient(); ptObj.Get(this._patientId); if (!ptObj.IsEmpty) { DeathStatusRpt.DataSource = new Patient[] { ptObj }.AsDataView(); DeathStatusRpt.DataBind(); } }
protected void SetDeathStatus() { Patient ptObj = new Patient(); ptObj.Get(this._patientId); //if (ptObj.DataSourceView.Table.Rows.Count >= 1) if (!ptObj.IsEmpty) { //DeathStatusRpt.DataSource = ptObj.DataSourceView; DeathStatusRpt.DataSource = new Patient[] { ptObj }.AsDataView(); DeathStatusRpt.DataBind(); } else { DeadHtmlRow.Visible = true; } }