protected void UpdateButton_Click(object sender, EventArgs e) { // // Save the Response Grid // LOIResponseGridView.Save(ProjectLetterOfIntentId, true); /*BusinessObject.ProjectLOIResponse biz = new BusinessObject.ProjectLOIResponse(); * * if (ProjectLOIResponseId != -1) * biz.Get(ProjectLOIResponseId); * * if (ProjectLetterOfIntentId != -1) * CICHelper.SetBOValues(EditResponsePanel.Controls, biz, ProjectLetterOfIntentId); * else * CICHelper.SetBOValues(EditResponsePanel.Controls, biz, 0); * * biz.Save(); * * if (biz["ProjectLOIResponseId"].ToString() != "") * { * ProjectLOIResponseId = Int32.Parse(biz["ProjectLOIResponseId"].ToString()); * }*/ GoToMainList(); }
private void PopulateResponseGrid() { //BusinessObject.ProjectLOIResponse biz = new BusinessObject.ProjectLOIResponse(); //biz.GetByParent(ProjectLetterOfIntentId); //LOIResponseGridView.DataSource = biz.DataSourceView; LOIResponseGridView.DataSource = BusinessObject.GetByParentAsDataView <BOL.ProjectLOIResponse>(ProjectLetterOfIntentId); LOIResponseGridView.DataBind(); }