Exemplo n.º 1
0
    protected void BindGv()
    {
        int recordCount = ConstructReport.GetByPrj(this.prjId).Count <ConstructReport>();

        this.AspNetPager1.RecordCount = recordCount;
        System.Collections.Generic.IList <ConstructReport> dataSource = ConstructReport.GetByPrj(this.prjId).Skip((this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize).Take(this.AspNetPager1.PageSize).ToList <ConstructReport>();
        this.gvConstruct.DataSource = dataSource;
        this.gvConstruct.DataBind();
    }