protected void gvwSchedule_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandSource is LinkButton)
            {
                if (e.CommandName.Equals("StartStop"))
                {
                    var startStopButton = e.CommandSource as LinkButton;
                    if (startStopButton.Text == "Start")
                    {
                        mvwForm.SetActiveView(View4);
                        ClassRunning classRunning = ClassService.GetClassRunning(Convert.ToInt32(e.CommandArgument));
                        if (classRunning != null)
                        {
                            lblBranch4.Text             = ddlBranch.SelectedItem.Text;
                            lblPeriod4.Text             = calDate.SelectedDate.GetValueOrDefault().ToLongDateString();
                            lblClassName4.Text          = classRunning.ClassScheduleDetail.Class.Name;
                            lblInstructor4.Text         = classRunning.ClassScheduleDetail.Instructor.Name;
                            ViewState["ClassRunningID"] = Convert.ToInt32(e.CommandArgument);
                            DynamicControlBinding.BindDropDown(
                                ddlRunningInstructor,
                                InstructorService.GetActiveInstructors(),
                                "Name",
                                "ID", true);

                            DynamicControlBinding.BindDropDown(
                                ddlRunningAssistant,
                                InstructorService.GetActiveInstructors(),
                                "Name",
                                "ID", true);

                            ddlRunningInstructor.SelectedValue = classRunning.RunningInstructorID.HasValue
                                ? classRunning.RunningInstructorID.Value.ToString()
                                : classRunning.ClassScheduleDetail.InstructorID.ToString();

                            ddlRunningAssistant.SelectedValue = classRunning.RunningAssistantID.HasValue
                                ? classRunning.RunningAssistantID.Value.ToString()
                                : String.Empty;

                            txtNotes.Text = Convert.ToString(classRunning.Notes);



                            cblAttendances.DataBind();
                            LoadAttendancesStatus();
                        }
                    }
                    else
                    {
                    }
                }
                else if (e.CommandName.Equals("Participants"))
                {
                    mvwForm.ActiveViewIndex = 2;
                    ClassRunning classRunning = ClassService.GetClassRunning(Convert.ToInt32(e.CommandArgument));
                    if (classRunning != null)
                    {
                        lblBranchName3.Text         = ddlBranch.SelectedItem.Text;
                        lblPeriod3.Text             = calDate.SelectedDate.GetValueOrDefault().ToLongDateString();
                        lblClassName3.Text          = classRunning.ClassScheduleDetail.Class.Name;
                        lblInstructor3.Text         = classRunning.ClassScheduleDetail.Instructor.Name;
                        ViewState["ClassRunningID"] = Convert.ToInt32(e.CommandArgument);

                        if (String.IsNullOrEmpty(hypLookUpCustomer.Attributes["onclick"]))
                        {
                            hypLookUpCustomer.Attributes.Add("onclick",
                                                             String.Format("showPromptPopUp('PromptCustomer.aspx?', '{0}', 550, 900);",
                                                                           txtBarcode.ClientID));
                        }
                    }
                    gvwData.DataBind();
                    CountTotalParticipants();
                }
            }
        }