protected void btnCancel_Click(object sender, EventArgs e) { tblEntityForm.Visible = false; tblEntityGrid.Visible = true; btnAddEntity.Enabled = true; BindGridViewResults(); EntitiesGridView.EditIndex = -1; EntitiesGridView.DataBind(); }
private void BindGridViewResults() { OdsResults.EnablePaging = false; OdsResults.TypeName = "SouthStarTitleBLL.BLL.EntityBLL"; OdsResults.SelectMethod = "GetEntities"; EntitiesGridView.AllowPaging = false; EntitiesGridView.AllowSorting = false; EntitiesGridView.DataSourceID = OdsResults.ID; EntitiesGridView.DataSource = OdsResults; EntitiesGridView.DataBind(); }
protected void btnEditEntity_Click(object sender, EventArgs e) { const string val = "E"; UpsertAddress(val); ClearFields(); BindGridViewResults(); tblEntityGrid.Visible = true; tblEntityForm.Visible = false; btnAddEntity.Enabled = true; EntitiesGridView.EditIndex = -1; EntitiesGridView.DataBind(); }