Exemplo n.º 1
0
    protected void viewviewSignature_DataBound(object sender, EventArgs e)
    {
        if (mvSpicemenSig.ActiveViewIndex == 1)
        {
            if (viewviewSignature.CurrentMode == FormViewMode.Insert)
            {

                LicenseApplication app = new LicenseApplication();

                //Guid LicenseApplicationId = (Guid)fvfranklinDetail.DataKey["LicenseApplicationId"];

                Guid LicenseApplicationId = (Guid)gvRenewVendor.SelectedDataKey.Value;

                if (ViewState["SpicemenDetails"] == null)

                    ViewState["SpicemenDetails"] = app.GetSpicemendetailsByLicenseId(LicenseApplicationId);

                GridView grd = ((GridView)viewviewSignature.FindControl("gvSignatureDetails"));
                grd.DataSource = (DataTable)ViewState["SpicemenDetails"];
                GridView grdCurent = ((GridView)viewviewSignature.FindControl("gvCurrentAuthoritySignatry"));
                grdCurent.DataSource = (DataTable)ViewState["SpicemenDetails"];
                grd.DataBind();
                grdCurent.DataBind();
            }
        }
    }