Beispiel #1
0
        private void Populate()
        {
            var paging = new CategoryPaging(
                this.PagingControl1.PageIndex,
                this.PagingControl1.RecordsPerPage,
                Category.FieldNameConstants.CategoryID,
                true);

            CategoryCollection categoryCollection =
                CategoryCollection.RunSelect(x => true, paging);

            this.PagingControl1.ItemCount = paging.RecordCount;
            grdItem.DataSource            = categoryCollection;
            grdItem.DataBind();
            SessionHelper.LastCategoryListSearch = this.Request.Url.AbsoluteUri;

            grdItem.DataSource = CategoryCollection.RunSelect();
            grdItem.DataBind();
        }
Beispiel #2
0
		private void Populate()
		{
			var paging = new CategoryPaging(
				this.PagingControl1.PageIndex,
				this.PagingControl1.RecordsPerPage,
				Category.FieldNameConstants.CategoryID,
				true);

			CategoryCollection categoryCollection =
				CategoryCollection.RunSelect(x => true, paging);

			this.PagingControl1.ItemCount = paging.RecordCount;
			grdItem.DataSource = categoryCollection;
			grdItem.DataBind();
			SessionHelper.LastCategoryListSearch = this.Request.Url.AbsoluteUri;

			grdItem.DataSource = CategoryCollection.RunSelect();
			grdItem.DataBind();


		}