Beispiel #1
0
        private void PopulateManuscriptAuthorsGrid()
        {
            ProjectManagementDa projDA = new ProjectManagementDa();

            DataTable dt = projDA.GetAuthorsByManuscriptId(manuscriptId);

            ManuscriptAuthorGridViewReadOnly.DataSource = dt;
            ManuscriptAuthorGridViewReadOnly.DataBind();
        }
        private void PopulateManuscriptAuthorsGrid()
        {
            ProjectManagementDa projDA = new ProjectManagementDa();

            DataTable dt = projDA.GetAuthorsByManuscriptId(manuscriptId);

            DataView dv = dt.DefaultView;

            dv.Table.Columns.Add("AuthorOrderInt", typeof(int), "IsNull(AuthorOrder, 100000)");
            dv.Sort = "AuthorOrderInt";

            ManuscriptAuthorGridView.DataSource = dv;
            ManuscriptAuthorGridView.DataBind();
        }