private void FillGrid()
        {
            ListEx <TagsStatisticsItem> newsItems = TagsStatisticsItem.GetList(PageFilter);
            int totalRecords = newsItems.TotalRecords;

            ToolsContainerControl.CheckForceFilterShow(totalRecords);
            PagingControl.SetTotalRecords(totalRecords);
            TagsStatisticsGrid.DataSource = newsItems;
            TagsStatisticsGrid.DataBind();
        }
        private void FillGrid()
        {
            ListEx <Community> communities = Community.GetList(PageFilter);
            int totalRecords = communities.TotalRecords;

            ToolsContainerControl.CheckForceFilterShow(totalRecords);
            PagingControl.SetTotalRecords(totalRecords);
            CommunitiesGrid.DataSource = communities;
            CommunitiesGrid.DataBind();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Заполнения списка пользователей
        /// </summary>
        private void FillGrid()
        {
            ListEx <UserProfile> users = UserProfile.GetList(PageFilter);
            int totalRecords           = users.TotalRecords;

            ToolsContainerControl.CheckForceFilterShow(totalRecords);
            PagingControl.SetTotalRecords(totalRecords);
            UsersGrid.DataSource = users;
            UsersGrid.DataBind();
            UsersNumberLbl.Text = String.Format(UsersNumberTemplate, Membership.GetNumberOfUsersOnline(), totalRecords);
        }