protected void gvInwarddtl_SelectedIndexChanged(object sender, EventArgs e) { //Setting the MultiView mvInward.SetActiveView(mvInward.Views[1]); //Changing the Mode of the FormView. FvInward.ChangeMode(FormViewMode.Edit); }
protected void Button_new_Click(object sender, EventArgs e) { mvInward.SetActiveView(mvInward.Views[1]); FvInward.ChangeMode(FormViewMode.Insert); ((Label)FvInward.Row.FindControl("lblguid")).Text = "11111111-1111-1111-1111-111111112311"; ((Label)FvInward.Row.FindControl("lblDocType")).Text = "11111111-1111-1111-1111-111111111111"; ((Label)FvInward.Row.FindControl("lblReceivingID")).Text = "11111111-1111-1111-1111-111111111111"; }
protected void Page_Load(object sender, EventArgs e) { //vieGrid.Visible = true; //vieFv.Visible = false; if (!IsPostBack) { switch (Request.Params["Mode"]) { case "DataEntry": mvInward.SetActiveView(mvInward.Views[1]); FvInward.ChangeMode(FormViewMode.Insert); break; case "Verify": mvInward.SetActiveView(mvInward.Views[0]); break; case "ReadOnly": Response.Redirect("~/Inward-Outward/InwardOutwardReport.aspx"); break; } } //if (FvInward.CurrentMode == FormViewMode.Insert) //{ //Creating Instance Of the IgrssGlobalConfigTableAdapter //IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); ////Calling Bll method and storing result into XmlDataSource //XmlInwarddoctype.Data = (string)ConfigAdapter.GetConfigByModule("IOW", "IOWDOCTYPE"); ////Binding XmlDataSource //XmlInwarddoctype.DataBind(); //Calling Bll method and storing result into XmlDataSource //XmlInwardtype.Data = (string)ConfigAdapter.GetConfigByModule("IOW", "IOWTYPE"); //Binding XmlDataSource //XmlInwardtype.DataBind(); //} if (FvInward.CurrentMode == FormViewMode.Edit) { //Creating Instance Of the IgrssGlobalConfigTableAdapter IgrssGlobalConfigTableAdapter ConfigAdapter = new IgrssGlobalConfigTableAdapter(); //Calling Bll method and storing result into XmlDataSource XmlInwarddoctype.Data = (string)ConfigAdapter.GetConfigByModule("IOW", "IOWDOCTYPE"); //Binding XmlDataSource XmlInwarddoctype.DataBind(); //Calling Bll method and storing result into XmlDataSource XmlInwardtype.Data = (string)ConfigAdapter.GetConfigByModule("IOW", "IOWTYPE"); //Binding XmlDataSource XmlInwardtype.DataBind(); } }
protected void Button_new_Click(object sender, EventArgs e) { mvInward.SetActiveView(mvInward.Views[1]); FvInward.ChangeMode(FormViewMode.Insert); }