Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 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);
     }
 }
 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);
     }
 }
Exemplo n.º 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);
        }
    }
    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);
        }
    }