예제 #1
0
        protected void LoadManuscriptGrid(string sortExpr)
        {
            ProjectManagementDa projDA = new ProjectManagementDa();

            DataTable dt = CombineRows(projDA.GetManuscriptsByProject(projectId));

            DataView dv = new DataView(dt);

            dv.Sort = sortExpr;

            if (dt.Rows.Count == 0)
            {
                EmptyMessageLabel.Visible = true;
            }
            else
            {
                EmptyMessageLabel.Visible  = false;
                ManuscriptsGrid.DataSource = dv;
                ManuscriptsGrid.DataBind();
            }
        }