本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}