本文整理汇总了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();
}
示例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();
}
示例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();
}
}
示例4: GridView1_PageIndexChanging
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
sqlSourceBorrow.DataBind();
GridView1.DataSource = sqlSourceBorrow;
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
示例5: grdacrData_Paging
public void grdacrData_Paging(Object sender, GridViewPageEventArgs e)
{
DataTable dtGridData = getTable();
grdSalesData.PageIndex = e.NewPageIndex;
grdSalesData.DataSource = dtGridData;
grdSalesData.DataBind();
}
示例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);
}
示例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();
}
示例8: grdBlock_PageIndexChanging
protected void grdBlock_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdBlock.PageIndex = e.NewPageIndex;
//Get AME block details
GetAMEBlockDetails();
}
示例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 ";
}
}
示例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();
}
示例11: GatewayGridView_PageIndexChanging
public void GatewayGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GatewayGridView.PageIndex = e.NewPageIndex;
GatewayGridView.DataSource = BillingController.GetAllGateways();
DataBind();
}
示例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;
}
示例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();
}
示例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);
}