当前位置: 首页>>代码示例>>C#>>正文


C# GridViewPageEventArgs类代码示例

本文整理汇总了C#中GridViewPageEventArgs的典型用法代码示例。如果您正苦于以下问题:C# GridViewPageEventArgs类的具体用法?C# GridViewPageEventArgs怎么用?C# GridViewPageEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GridViewPageEventArgs类属于命名空间,在下文中一共展示了GridViewPageEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnUserPaging

    protected void OnUserPaging(object sender, GridViewPageEventArgs e)
    {
        BindData();

        UserView.PageIndex = e.NewPageIndex;
        UserView.DataBind();
    }
开发者ID:QiangLi682,项目名称:vto,代码行数:7,代码来源:UserPage.aspx.cs

示例2: gv_PageIndexChanging

 protected void gv_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     this.gv.PageIndex = e.NewPageIndex;
     DataSet ds = (DataSet)Session["DS_INT"];
     this.gv.DataSource = ds;
     this.gv.DataBind();
 }
开发者ID:hiway86,项目名称:PRS_KAO,代码行数:7,代码来源:InventoryCheck_QM.aspx.cs

示例3: GridView_PageIndexChanging

    protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        String sortExpression = String.Empty;
        String NewSortDirection = String.Empty;

        GridView.PageIndex = e.NewPageIndex;

        if (Session["SortExpression"] != null)
        {
            sortExpression = (String)Session["SortExpression"];

            if (Session["SortDirection"] != null && Session["SortDirection"].ToString() == SortDirection.Ascending.ToString())
            {
                NewSortDirection = "ASC";
            }
            else
            {
                NewSortDirection = "DESC";
            }

            Sort(sortExpression, NewSortDirection);
        }
        else
        {
            GridView.DataSource = SearchDataSet;
            GridView.DataBind();
            FormatTable();
        }
    }
开发者ID:tanda8,项目名称:HarboutPortal-1,代码行数:29,代码来源:SearchResults.aspx.cs

示例4: GridView1_PageIndexChanging

 protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     sqlSourceBorrow.DataBind();
     GridView1.DataSource = sqlSourceBorrow;
     GridView1.PageIndex = e.NewPageIndex;
     GridView1.DataBind();
 }
开发者ID:cheng10,项目名称:library_management,代码行数:7,代码来源:BorrowMan.aspx.cs

示例5: grdacrData_Paging

 public void grdacrData_Paging(Object sender, GridViewPageEventArgs e)
 {
     DataTable dtGridData = getTable();
     grdSalesData.PageIndex = e.NewPageIndex;
     grdSalesData.DataSource = dtGridData;
     grdSalesData.DataBind();
 }
开发者ID:krishnakant,项目名称:WMS,代码行数:7,代码来源:SalesPopup.aspx.cs

示例6: MerchantGridView_PageIndexChanging

 /// <summary>
 /// /////////Merchant gridview/////////////////
 /// </summary>
 /// Paging
 protected void MerchantGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     MerchantGridView.PageIndex= e.NewPageIndex;
     MerchantGridView.EditIndex = -1;
     int catid = Convert.ToInt32(CategoryDropDownList.SelectedValue);
     LoadCardList(catid);
 }
开发者ID:vulonggiao0207,项目名称:Cardpool,代码行数:11,代码来源:Merchant.aspx.cs

示例7: GridViewInbox_PageIndexChanging

 /// <summary>
 /// Event fired when the actual GridView page is changed.
 /// </summary>
 /// <param name="sender">The sender object</param>
 /// <param name="e">The page event arguments</param>
 protected void GridViewInbox_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     Facade facade = Facade.GetInstance();
     GridViewInbox.DataSource = facade.getListHeaders();
     GridViewInbox.PageIndex = e.NewPageIndex;
     GridViewInbox.DataBind();    
 }
开发者ID:haoasqui,项目名称:MailSystem.NET,代码行数:12,代码来源:Inbox.aspx.cs

示例8: grdBlock_PageIndexChanging

    protected void grdBlock_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grdBlock.PageIndex = e.NewPageIndex;

        //Get AME block details
        GetAMEBlockDetails();
    }
开发者ID:nitinkhannas,项目名称:TCESS.ESales,代码行数:7,代码来源:ManageAMEBlocks.aspx.cs

示例9: GridViewQuotation_PageIndexChanging

 protected void GridViewQuotation_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtCountry.Text))
     {
       SqlDataSourceQuot.SelectCommand = "SELECT vw_Quotation.Quotation_Version_Id, vw_Quotation.Quotation_No, vw_Quotation.Vername,vw_Quotation.Quotation_Status_Name, vw_Quotation.code, vw_Quotation.companyname, vw_Quotation.Product_Name, vw_Quotation.Model_No, vw_Quotation.username, vw_Quotation.Quotation_OpenDate, vw_Quotation.Client_Id, vw_Quotation.fname, vw_Quotation.SalesId , quotation_country FROM vw_Quotation LEFT OUTER JOIN m_employee_accesslevel ON vw_Quotation.Access_Level_ID = m_employee_accesslevel.accesslevel_id WHERE ((m_employee_accesslevel.employee_id = @employee_id) OR (vw_Quotation.Access_Level_ID IS NULL)) AND Client_Id like @Client_Id AND SalesId like @SalesId AND ([Product_Name] LIKE '%' + @Product_Name + '%') AND ([Model_No] LIKE '%' + @Model_No + '%') AND vw_Quotation.Quotation_Version_Id in (Select quotation_id from Quotation_Target,Country Where Quotation_Target.country_id = dbo.country.country_id and country_name like '%' + @quotation_country + '%') ORDER BY vw_Quotation.Quotation_No DESC, vw_Quotation.Vername, vw_Quotation.Model_No ";
     }
 }
开发者ID:AdamsChao,项目名称:netdb-localdev-proj,代码行数:7,代码来源:Quotation.aspx.cs

示例10: GridView1_PageIndexChanging

 protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     DataTable dt = (DataTable)ViewState["dt"];
     GridView1.DataSource = dt;
     GridView1.PageIndex = e.NewPageIndex;
     GridView1.DataBind();
 }
开发者ID:xy19xiaoyu,项目名称:TG,代码行数:7,代码来源:frmQueryMag.aspx.cs

示例11: GatewayGridView_PageIndexChanging

    public void GatewayGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GatewayGridView.PageIndex = e.NewPageIndex;
        GatewayGridView.DataSource = BillingController.GetAllGateways(); 
        DataBind();

    }
开发者ID:IdeaFortune,项目名称:Monaco,代码行数:7,代码来源:GatewayList.ascx.cs

示例12: grdvwUser_PageIndexChanging

 protected void grdvwUser_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     // Hndling GridView PageIndex Change Event for Paging
     grdvwUser.PageIndex = e.NewPageIndex;
     // On Selected Page Index Bind Grid here
     BindGrid1();
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:7,代码来源:ViewUser.aspx.cs

示例13: gridBCCAudit_PageIndexChanging

    protected void gridBCCAudit_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        // Set CurrentPageIndex to the page the user clicked.
        gridBCCAudit.PageIndex = e.NewPageIndex;

        // The index starts from 0.
        if (e.NewPageIndex != -1)
        {
            //if (e.NewPageIndex == 0)
            //{
            //    startRow = 1;
            //    endRow = rows_per_page;       // no of rows per page.
            //}
            //else
            //{
            //    startRow = e.NewPageIndex * rows_per_page;
            //    endRow = startRow + rows_per_page;
            //}

            DataTable dataTable = BCCAuditDataAccess.RetrieveAuditRecords(startRow, endRow);

            if (dataTable != null)
            {
                gridBCCAudit.DataSource = dataTable;
                gridBCCAudit.DataBind();
            }

        }

        e.Cancel = false;
    }
开发者ID:navkar,项目名称:BizTalkControlCenter,代码行数:31,代码来源:PVMA.aspx.cs

示例14: GVType_PageIndexChanging

    protected void GVType_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView theGrid = sender as GridView;  // refer to the GridView
        int newPageIndex = 0;

        if (-2 == e.NewPageIndex)
        { // when click the "GO" Button
            TextBox txtNewPageIndex = null;

            GridViewRow pagerRow = theGrid.BottomPagerRow;

            if (null != pagerRow)
            {
                txtNewPageIndex = pagerRow.FindControl("txtNewPageIndex") as TextBox;   // refer to the TextBox with the NewPageIndex value
            }

            if (null != txtNewPageIndex)
            {

                newPageIndex = int.Parse(txtNewPageIndex.Text) - 1; // get the NewPageIndex
            }
        }
        else
        {  // when click the first, last, previous and next Button
            newPageIndex = e.NewPageIndex;
        }

        // check to prevent form the NewPageIndex out of the range
        newPageIndex = newPageIndex < 0 ? 0 : newPageIndex;
        newPageIndex = newPageIndex >= theGrid.PageCount ? theGrid.PageCount - 1 : newPageIndex;
        theGrid.PageIndex = newPageIndex;
        string Hid = Request.Cookies["TeacherCookies"].Values["Hid"].ToString();
        Session[Hid+"TyperPageIndex"] = newPageIndex;
        ListTypeArticle();
    }
开发者ID:dalinhuang,项目名称:learnsite,代码行数:35,代码来源:typer.aspx.cs

示例15: grdRePrint_PageIndexChanging

    protected void grdRePrint_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grdRePrint.PageIndex = e.NewPageIndex;

        //Get payment details from database filtered on search criteria
        LoadCollectionDetails(string.Empty);
    }
开发者ID:nitinkhannas,项目名称:TCESS.ESales,代码行数:7,代码来源:RePrintPaymentReceipt.aspx.cs


注:本文中的GridViewPageEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。