Esempio n. 1
0
        protected void LogListPager_CommonPageIndexChanged(object sender, EventArgs e)
        {
            DataSet ds = ObjData.GetPagerQuery(logListPager.PageSize, logListPager.PageIndex);

            int recordCount = ObjData.GetOrdersQueryCount();

            gvLogList.DataSource = ds;

            logListPager.RecordCount = recordCount;

            gvLogList.DataBind();
        }
Esempio n. 2
0
        protected void gvLogList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            logListPager.PageIndex = e.NewPageIndex;

            DataSet ds = ObjData.GetPagerQuery(logListPager.PageSize, logListPager.PageIndex);

            int recordCount = ObjData.GetOrdersQueryCount();

            gvLogList.DataSource = ds;

            logListPager.RecordCount = recordCount;

            gvLogList.DataBind();
        }