protected void GrdSQCCompletedScheduleStatus_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GrdSQCCompletedScheduleStatus.PageIndex = e.NewPageIndex;
     if (Session["TestScheduleDetailId"] != null && Convert.ToInt16(Session["TestScheduleDetailId"]) > 0)
     {
         BindSQCCompletedScheduleParameterGrid(Convert.ToInt16(Session["TestScheduleDetailId"]));
     }
     MPCompletedSchedule.Show();
 }
        protected void lnkScheduleName_Click(Object sender, EventArgs e)
        {
            int rowIndex = ((sender as LinkButton).NamingContainer as GridViewRow).RowIndex;
            int id       = Convert.ToInt32(GrdCompletedStatus.DataKeys[rowIndex].Values[0]);

            Session["TestScheduleDetailId"] = id;
            Session["ScheduleTypeId"]       = Convert.ToInt32(GrdCompletedStatus.DataKeys[rowIndex].Values[1]);
            if (Convert.ToInt32(GrdCompletedStatus.DataKeys[rowIndex].Values[1]) == 3)
            {
                divGrdSQCCompletedScheduleStatus.Visible = true;
                dvGrdCompletedScheduleStatus.Visible     = false;
                BindSQCCompletedScheduleParameterGrid(id);
            }
            else
            {
                divGrdSQCCompletedScheduleStatus.Visible = false;
                dvGrdCompletedScheduleStatus.Visible     = true;
                BindCompletedScheduleParameterGrid(id);
            }
            MPCompletedSchedule.Show();
        }