Code: Select all
protected void ShipmentsGrid_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
this.ShipmentsGrid.PageIndex = e.NewPageIndex;
BindShipmentsGrid();
}
Thanks
Code: Select all
protected void ShipmentsGrid_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
this.ShipmentsGrid.PageIndex = e.NewPageIndex;
BindShipmentsGrid();
}
Code: Select all
<cb:AbleGridView ID="ShipmentsGrid" SkinID="PagedList" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanging="ShipmentsGrid_PageIndexChanging" PageSize="50" OnRowDataBound="ShipmentsGrid_RowDataBound" ShowHeader="true" GridLines="None" PagerSettings-Position="TopAndBottom" >
Code: Select all
in page load
ShipmentsGrid.PageSizeOptions= "50:50";
ShipmentsGrid.PagerMode = CommerceBuilder.UI.WebControls.AbleGridView.PagerType.Custom;
//if (Page.IsPostBack)
//{
// ShipmentsGrid.PageSizeOptions = string.Format("{0}:{0}|{1}:{1}", 20, 40);
//}
BindShipmentsGrid();
Code: Select all
protected void Page_Init(object sender, EventArgs e)
{
//doesn't work
if (Page.IsPostBack)
{
//int pageSize = AlwaysConvert.ToInt(Request.Form["ctl00$MainContent$ShipmentsGrid$ctl01$ctl11"]);
//ShipmentsGrid.PageSize = pageSize;
//ShipmentsGrid.PageSizeOptions = string.Format("{0}:{0}|{1}:{1}",20,40);
}
}
Code: Select all
PageSizeOptions = "Show All:0|5:5|10:10|20:20|50:50|100:100"
Code: Select all
<cb:AbleGridView ID="ShipmentsGrid" SkinID="PagedList" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanging="ShipmentsGrid_PageIndexChanging" PageSize="20" OnRowDataBound="ShipmentsGrid_RowDataBound" ShowHeader="true" GridLines="None" PagerSettings-Position="TopAndBottom" PageSizeOptions = "Show All:0|5:5|10:10|20:20|50:50|100:100" >
Code: Select all
<cb:AbleGridView ID="KeycodeGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="KeycodeId" AllowPaging="true" PageSize="5" <cb:AbleGridView ID="KeycodeGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="KeycodeId" AllowPaging="true" PagerSettings-Position="TopAndBottom" OnPageIndexChanging="KeycodeGrid_PageIndexChanging"
TotalMatchedFormatString="<span id='searchCount'>{0}</span> matching keycodes"
AllowSorting="true" SkinID="PagedList" Width="100%" OnRowCommand="KeycodeGrid_RowCommand" Visible="false" PageSizeOptions = "Show All:0|5:5|10:10|20:20|50:50|100:100" OnSelectedIndexChanging="KeycodeGrid_SelectedIndexChanging">
Code: Select all
<cb:AbleGridView ID="CouponGrid" runat="server"
AutoGenerateColumns="False"
DataKeyNames="Id"
DataSourceID="CouponDs"
AllowPaging="True"
PageSize="1"
TotalMatchedFormatString="<span id='searchCount'>{0}</span> matching coupons"
SkinID="PagedList"
ShowWhenEmpty="False"
AllowMultipleSelections="False"
AllowSorting="true"
Width="100%"
DefaultSortExpression="Name"
OnRowDataBound="CouponGrid_RowDataBound"
OnRowCommand="CouponGrid_RowCommand" PageSizeOptions="Show All:0|1:1|15:15|20:20|70:70">