protected void gv_List_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { int detailID = int.Parse(gv_List.DataKeys[e.NewSelectedIndex]["ID"].ToString()); ViewState["DetailID"] = detailID; KPI_SchemeDetail model = new KPI_SchemeBLL((int)ViewState["ID"]).GetDetailModel(detailID); DV_KPISchemeDetail.BindData(model); DV_KPISchemeDetail.Visible = true; }
protected void bt_Add_Click(object sender, EventArgs e) { DV_KPISchemeDetail.Visible = true; DV_KPISchemeDetail.BindData(new KPI_SchemeDetail()); }