Esempio n. 1
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     tblEntityForm.Visible = false;
     tblEntityGrid.Visible = true;
     btnAddEntity.Enabled  = true;
     BindGridViewResults();
     EntitiesGridView.EditIndex = -1;
     EntitiesGridView.DataBind();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        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();
        }