コード例 #1
0
    protected void grvStudentdetail_Sorting(object sender, GridViewSortEventArgs e)
    {
        if (e.SortExpression.Trim() == this.SortField)
        {
            this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
        }
        else
        {
            this.SortDirection = "ascending";
        }
        this.SortField = e.SortExpression;
        GridViewOperations GrvOperation = new GridViewOperations();

        GrvOperation.GrvSortingSetImage(e, grvStudentdetail, this.SortDirection);
    }
コード例 #2
0
    protected void gvEmployeeDetails_Sorting(object sender, GridViewSortEventArgs e)
    {
        if (e.SortExpression.Trim() == this.SortField)
        {
            this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
        }
        else
        {
            this.SortDirection = "ascending";
        }

        this.SortField = e.SortExpression;
        this.BindGridEmployeeDetails();
        GridViewOperations GrvOperation = new GridViewOperations();

        GrvOperation.GrvSortingSetImage(e, this.gvEmployeeDetails, this.SortDirection);
    }
コード例 #3
0
    protected void grvReschedulingData_Sorting(object sender, GridViewSortEventArgs e)
    {
        if (e.SortExpression.Trim() == this.SortField)
        {
            this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
        }
        else
        {
            this.SortDirection = "ascending";
            this.SortField     = e.SortExpression;
            Applied_Chapter_Topics();
        }

        GridViewOperations GrvOperation = new GridViewOperations();

        GrvOperation.GrvSortingSetImage(e, grvReschedulingData, this.SortDirection);
    }
コード例 #4
0
    protected void grTestResult_Sorting(object sender, GridViewSortEventArgs e)
    {
        if (e.SortExpression.Trim() == this.SortField)
        {
            this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
        }
        else
        {
            this.SortDirection = "ascending";
            this.SortField     = e.SortExpression;
            int index = Convert.ToInt32(menuTestType.SelectedValue);
            BindGridData(index);
        }

        GridViewOperations GrvOperation = new GridViewOperations();

        GrvOperation.GrvSortingSetImage(e, grTestResult, this.SortDirection);
    }
コード例 #5
0
    protected void gvEmpStdSubAllocationDetails_Sorting(object sender, GridViewSortEventArgs e)
    {
        if (e.SortExpression.Trim() == this.SortField)
        {
            this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
        }
        else
        {
            this.SortDirection = "ascending";
        }

        this.SortField = e.SortExpression;

        this.SortField = e.SortExpression;
        bindgrvSchoolRegistrationBMSdetail(Convert.ToInt32(ViewState["SchRegID"].ToString()));

        GridViewOperations GrvOperation = new GridViewOperations();

        GrvOperation.GrvSortingSetImage(e, gvSchoolRegistrationBMSdetail, this.SortDirection);
    }
コード例 #6
0
 protected void GrvResultDetails_Sorting(object sender, GridViewSortEventArgs e)
 {
     try
     {
         if (e.SortExpression.Trim() == this.SortField)
         {
             this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
         }
         else
         {
             this.SortDirection = "ascending";
         }
         this.SortField = e.SortExpression;
         BindGrvResultDetails();
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.GrvSortingSetImage(e, GrvResultDetails, this.SortDirection);
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
コード例 #7
0
 protected void grdClassroomWiseAttendance_Sorting(object sender, GridViewSortEventArgs e)
 {
     try
     {
         if (e.SortExpression.Trim() == this.SortField)
         {
             this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
         }
         else
         {
             this.SortDirection = "ascending";
         }
         this.SortField = e.SortExpression;
         BindClassWiseAttendanceGrid();
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.GrvSortingSetImage(e, grdClassroomWiseAttendance, this.SortDirection);
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
コード例 #8
0
    protected void grvSYS_Chapterdetail_Sorting(object sender, GridViewSortEventArgs e)
    {
        try
        {
            if (e.SortExpression.Trim() == this.SortField)
            {
                this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
            }
            else
            {
                this.SortDirection = "ascending";
                this.SortField     = e.SortExpression;
                bindgrvSYS_Chapterdetail();
            }

            GridViewOperations GrvOperation = new GridViewOperations();
            GrvOperation.GrvSortingSetImage(e, grvSYS_Chapterdetail, this.SortDirection);
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }
コード例 #9
0
    protected void grvEmpStdSubAllocationDetails_Sorting(object sender, GridViewSortEventArgs e)
    {
        try
        {
            if (e.SortExpression.Trim() == this.SortField)
            {
                this.SortDirection = this.SortDirection == "descending" ? "ascending" : "descending";
            }
            else
            {
                this.SortDirection = "ascending";
            }

            this.SortField = e.SortExpression;
            this.BindGridData();

            GridViewOperations GrvOperation = new GridViewOperations();
            GrvOperation.GrvSortingSetImage(e, this.GvUserList, this.SortDirection);
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }