public void grdpl1_UpdateCommand(object sender, DataGridCommandEventArgs e)
    {
        //Response.Write("Comes In");
        String DetailId = "";

        DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
        Whitfield_Project _wc = new Whitfield_Project();

        _wc.UpdateWorkorders(DetailId, Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtMatCost"))).Text), (((TextBox)(e.Item.FindControl("txtLongDesc1"))).Text).ToString(), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtfabhours"))).Text), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtfinhours"))).Text), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtinstallhours"))).Text), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtEngHours"))).Text), Convert.ToInt32(((TextBox)(e.Item.FindControl("txtMiscHours"))).Text), (((TextBox)(e.Item.FindControl("txtNotes"))).Text).ToString(), "1");

        grdpl1.EditItemIndex = -1;
        grdpl1.ShowFooter = true;
        this.DisplayGrid();
    }