AddRow() private method

private AddRow ( DataRow row ) : void
row DataRow
return void
Beispiel #1
0
        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;
        }
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        public static DataTable AuthorsTable()
        {
            var table = new DataTable("Authors");

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

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

            return table;
        }
        private static System.Data.DataSet GetDataSource(string name)
        {
            var ds    = new System.Data.DataSet(name);
            var table = new System.Data.DataTable("TestTable");

            table.AddColumns(new DataColumn("TaxType", typeof(string)), new DataColumn("TaxPercent", typeof(double)));
            table.AddRow("Lorem", 0.137);
            table.AddRow("Ipsum", 0.144);
            table.AddRow("Dolor", 0.004);
            table.AddRow("Sit", 0.025);
            table.AddRow("Amet", 0.074);
            table.AddRow("Consectetur", 0.616);
            ds.Tables.Add(table);
            return(ds);
        }
Beispiel #6
0
        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;
        }
 /// <summary>
 /// Adds the specified <see cref='System.Data.DataRow'/> to the <see cref='System.Data.DataRowCollection'/> object.
 /// </summary>
 public void Add(DataRow row) => _table.AddRow(row, -1);