protected void grdHistory_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            // Comments Gridview, if the gridview is edition mode
            if (grdHistory.EditIndex >= 0)
            {
                grdHistory.UpdateRow(grdHistory.EditIndex, true);
            }

            // Delete history
            Guid id = new Guid(((Label)grdHistory.Rows[e.RowIndex].Cells[0].FindControl("lblId")).Text);
            int refId = Int32.Parse(((Label)grdHistory.Rows[e.RowIndex].Cells[1].FindControl("lblRefID")).Text);
            int companyId = Int32.Parse(hdfCompanyId.Value);
            int historyId = Int32.Parse(((Label)grdHistory.Rows[e.RowIndex].Cells[2].FindControl("lblHistoryID")).Text);
            int loginId = Convert.ToInt32(hdfLoginId.Value);
            bool adminPermission = Convert.ToBoolean(Session["sgLFS_CWP_JUNCTIONLINING_ADMIN"]);

            FlatSectionJlinerJuntionLiner2History model = new FlatSectionJlinerJuntionLiner2History(flatSectionJlinerTDS);
            model.Delete(id, refId, companyId, historyId, loginId, adminPermission);

            // Store dataset
            Session["flatSectionJlinerTDS"] = flatSectionJlinerTDS;
        }