當前位置: 首頁>>代碼示例>>C#>>正文


C# DataTable.AddRow方法代碼示例

本文整理匯總了C#中System.Data.DataTable.AddRow方法的典型用法代碼示例。如果您正苦於以下問題:C# DataTable.AddRow方法的具體用法?C# DataTable.AddRow怎麽用?C# DataTable.AddRow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Data.DataTable的用法示例。


在下文中一共展示了DataTable.AddRow方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: MainTable

        public static DataTable MainTable()
        {
            var table = new DataTable("QOAMcorners");

            table.AddColumns("Test Corner", "Another Corner");

            table.AddRow(new[] { "123-123", "777-888" });
            table.AddRow(new[] { "456-456", "" });

            return table;
        }
開發者ID:spapaseit,項目名稱:qoam,代碼行數:11,代碼來源:CornerStubs.cs

示例2: AuthorsTable

        public static DataTable AuthorsTable()
        {
            var table = new DataTable("Links");

            table.AddColumns("eissn", "url");

            table.AddRow(new[] { "1687-8140", "http://ade.sagepub.com/submission" });
            table.AddRow(new[] { "2073-4395", "http://www.mdpi.com/journal/agronomy/submission" });
            table.AddRow(new[] { "2372-0484", "http://www.aimspress.com/journal/Materials/submission" });
            table.AddRow(new[] { "1687-7675", "http://www.hindawi.com/journals/aess/submission" });

            return table;
        }
開發者ID:spapaseit,項目名稱:qoam,代碼行數:13,代碼來源:SubmissionLinkImportStubs.cs

示例3: LicenseTable

        public static DataTable LicenseTable(string licenseName)
        {
            var table = new DataTable(licenseName);

            table.AddColumns("eISSN", "text");

            table.AddRow(new[] { "0219-3094", "Discount of 100% on publication fee. Please contact your library for more information." });
            table.AddRow(new[] { "0219-3116", "Some random text" });
            table.AddRow(new[] { "0814-6039", "I'm Batman" });
            table.AddRow(new[] { "0942-0940", "No, really." });

            return table;
        }
開發者ID:spapaseit,項目名稱:qoam,代碼行數:13,代碼來源:ImportFileStubs.cs

示例4: AuthorsTable

        public static DataTable AuthorsTable()
        {
            var table = new DataTable("Authors");

            table.AddColumns("eissn", "Author email address", "Author name");

            table.AddRow(new[] { "1687-8140", "[email protected]", "A. Caenen" });
            table.AddRow(new[] { "2073-4395", "[email protected]", "Jeroen De Waele"});
            table.AddRow(new[] { "2372-0484", "[email protected]", "Dolores Esquivel"});
            table.AddRow(new[] { "1687-7675", "[email protected]", "E. Van Ranst"});
            table.AddRow(new[] { "1234-7675", "[email protected],[email protected];[email protected]", "K. Test"});

            return table;
        }
開發者ID:spapaseit,項目名稱:qoam,代碼行數:14,代碼來源:InvitationStubs.cs

示例5: UniversitiesTable

        public static DataTable UniversitiesTable()
        {
            var table = new DataTable("Universities");

            table.AddColumns("Domains", "Tabs");

            table.AddRow(new[] { "ru.nl", "Sage" });
            table.AddRow(new[] { "uu.nl", "Springer" });
            table.AddRow(new[] { "uva.nl", "Springer, Sage" });
            table.AddRow(new[] { "rug.nl", "Springer,Sage" });
            table.AddRow(new[] { "ugent.be", "Springer; Sage" });
            table.AddRow(new[] { "upc.cat", "Springer;Sage" });

            return table;
        }
開發者ID:spapaseit,項目名稱:qoam,代碼行數:15,代碼來源:ImportFileStubs.cs


注:本文中的System.Data.DataTable.AddRow方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。