10月份 杂记

【1】   随即生成一个数字

Random random = new Random();

int i = random.Next(1,100);

 

【2】 分页

 

 using (this.GroupColletion.DeferRefresh())
            {
                this._viewgroup.PageSize = 10;
                this._viewgroup.MoveToFirstPage();
            }

 

 if (op.TotalEntityCount != -1)
                {
                    this._viewgroup.SetTotalItemCount(op.TotalEntityCount);
                    this._viewgroup.MoveToFirstPage();
                }

 

posted @ 2011-10-19 11:49  笑醉红尘  阅读(131)  评论(0编辑  收藏  举报