コード例 #1
0
 protected void gvEmployeeDetails_RowCreated(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.Pager)
     {
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.SetPagerButtonStates(this.gvEmployeeDetails, e.Row, this.Page);
     }
 }
コード例 #2
0
 protected void gvEmpStdSubAllocationDetails_RowCreated(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.Pager)
     {
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.SetPagerButtonStates(gvSchoolRegistrationBMSdetail, e.Row, this.Page);
     }
 }
コード例 #3
0
 protected void GvUserList_RowCreated(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.Pager)
     {
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.SetPagerButtonStates(this.GvUserList, e.Row, this.Page);
     }
 }
コード例 #4
0
 protected void GrvSYS_Boarddetail_RowCreated(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.Pager)
     {
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.SetPagerButtonStates(grvSYS_Boarddetail, e.Row, this.Page);
     }
 }
コード例 #5
0
 protected void grvEmpStdSubAllocationDetails_RowCreated(object sender, GridViewRowEventArgs e)
 {
     try
     {
         if (e.Row.RowType == DataControlRowType.Pager)
         {
             GridViewOperations GrvOperation = new GridViewOperations();
             GrvOperation.SetPagerButtonStates(this.GvUserList, e.Row, this.Page);
         }
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
コード例 #6
0
 protected void grvSYS_Chapterdetail_RowCreated(object sender, GridViewRowEventArgs e)
 {
     try
     {
         if (e.Row.RowType == DataControlRowType.Pager)
         {
             GridViewOperations GrvOperation = new GridViewOperations();
             GrvOperation.SetPagerButtonStates(grvSYS_Chapterdetail, e.Row, this.Page);
         }
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
コード例 #7
0
 protected void grdClassroomWiseAttendance_RowCreated(object sender, GridViewRowEventArgs e)
 {
     try
     {
         if (e.Row.RowType == DataControlRowType.Pager)
         {
             GridViewOperations GrvOperation = new GridViewOperations();
             GrvOperation.SetPagerButtonStates(grdAttendance, e.Row, this.Page);
         }
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
コード例 #8
0
    protected void grTestResult_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.Pager)
        {
            GridViewOperations GrvOperation = new GridViewOperations();
            GrvOperation.SetPagerButtonStates(grTestResult, e.Row, this.Page);
        }
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            // when mouse is over the row, save original color to new attribute, and change it to highlight color
            e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#95DDDD';this.style.cursor='pointer'");

            // when mouse leaves the row, change the bg color to its original value
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
        }
    }
コード例 #9
0
    protected void GrvResultDetails_RowCreated(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.Pager)
            {
                GridViewOperations GrvOperation = new GridViewOperations();
                GrvOperation.SetPagerButtonStates(GrvResultDetails, e.Row, this.Page);
            }
            if (e.Row.RowType == System.Web.UI.WebControls.DataControlRowType.DataRow)
            {
                e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#95DDDD';this.style.cursor='pointer'");

                // when mouse leaves the row, change the bg color to its original value
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
            }
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }
コード例 #10
0
    protected void grdClassroomWiseAttendance_RowCreated(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.Pager)
            {
                GridViewOperations GrvOperation = new GridViewOperations();
                GrvOperation.SetPagerButtonStates(grdClassroomWiseAttendance, e.Row, this.Page);
            }
            if (e.Row.RowType == System.Web.UI.WebControls.DataControlRowType.DataRow)
            {
                // when mouse is over the row, save original color to new attribute, and change it to highlight color
                e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#95DDDD';this.style.cursor='pointer'");

                // when mouse leaves the row, change the bg color to its original value
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
            }
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }