protected void dgLevel_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        GlLevel lvl = LvlManager.getLevel(((TextBox)dgLevel.Rows[e.RowIndex].FindControl("txtLevelCode")).Text);

        lvl.LvlDesc    = ((TextBox)dgLevel.Rows[e.RowIndex].FindControl("txtLevelDesc")).Text;
        lvl.LvlMaxSize = ((TextBox)dgLevel.Rows[e.RowIndex].FindControl("txtLevelMaxSize")).Text;
        lvl.LvlEnabled = ((DropDownList)dgLevel.Rows[e.RowIndex].FindControl("ddlLevelEnabled")).SelectedValue.ToString();
        lvl.LvlSegType = ((DropDownList)dgLevel.Rows[e.RowIndex].FindControl("ddlLevelSegType")).SelectedValue.ToString();
        lvl.LvlOrder   = ((TextBox)dgLevel.Rows[e.RowIndex].FindControl("txtLevelOrder")).Text;
        LvlManager.UpdateLevel(lvl);
        DataTable dtLvl = LvlManager.GetLevels();

        dgLevel.EditIndex  = -1;
        dgLevel.DataSource = dtLvl;
        dgLevel.DataBind();
        dgGlCoaGen.DataSource = LvlManager.GetLevelsGrid();
        dgGlCoaGen.DataBind();
        //ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script language=JavaScript>alert('Updated Successfully! ');</script>");
    }