示例#1
0
        protected void GridViewSpamComment_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            GridViewSpamComment.PageIndex = e.NewPageIndex;
            var comments = GetAllComments();

            GridViewSpamComment.DataSource = comments;
            GridViewSpamComment.DataBind();
        }
示例#2
0
        private void FillSpamCommentGrid()
        {
            var comments = GetAllComments();

            GridViewSpamComment.DataSource = comments;
            GridViewSpamComment.DataBind();
            GridViewSpamComment.PageIndexChanging += GridViewSpamComment_PageIndexChanging;
        }